ARM > Efficient C for ARM > Small Functions
Previous topic:
Function Calls
Next topic:
Biasing Values
iOS Wedding Vector Trace Toy Toolbar Tip The Great Escape TargetedOptimisation Spectrum Slide Site Sinclair Simpsons Script Risc PC Reverse Engineering Retro Recreation RISC OS QuickFiler Python Project PrivateEye Pixel Art PhotoFiler Optimisation Ocean MotionMasks Logo Links LEGO Iyonix Isometric IntroductionToARM Hardware Hard Disc Groening GitHub Geminus Game Futurama Electron EfficientC Dump Doodle Disenchantment Disassembly Containers Chase H.Q. Blog Blender BasicOptimisation BBC Micro Article Archimedes Aha Acorn ARM 3D 2D
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.