ARM > Efficient C for ARM > Small Functions
Previous topic:
Function Calls
Next topic:
Biasing Values
ARM RISC OS PrivateEye PhotoFiler IntroductionToARM Geminus Toolbar Site Containers GitHub Hardware iOS Optimisation Project Aha Retro Links Dump Spectrum Risc PC The Great Escape LEGO Wedding Acorn Doodle Blender 3D Isometric 2D Article Sinclair Ocean TargetedOptimisation Disassembly Chase H.Q. Tip BasicOptimisation Slide Trace Hard Disc Vector Pixel Art Groening Simpsons Futurama Disenchantment BBC Micro Electron Archimedes MotionMasks Script Python Iyonix QuickFiler Game EfficientC
If the compiler can ‘see’ the definition of a function—i.e. its definition is present in the same source file—it can optimise it further:
This can be slightly confusing when examining the resultant assembly language code. Functions may appear to vanish when they’re subsumed into the caller.