ARM > Efficient C for ARM > Small Functions
Previous topic:
Function Calls
Next topic:
Biasing Values
RISC OS PrivateEye IntroductionToARM PhotoFiler 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 ARM TargetedOptimisation Disassembly Chase H.Q. Tip BasicOptimisation Trace Hard Disc Vector Pixel Art Groening Simpsons Futurama Disenchantment BBC Micro Electron Archimedes Slide EfficientC MotionMasks Script Python Iyonix QuickFiler Game
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.