Inlining - CI/CD用語集の定義
インライン化は関数の呼び出し箇所を、呼び出される関数の本体で置き換え、call/return のオーバーヘッドを排除し、constant folding のような呼び出しをまたぐ最適化を可能にします。過度なインライン化はコードサイズを膨らませるため、compiler はそれをヒューリスティックに比較検討します。
関連ガイド
Constant Folding - CI/CD Glossary DefinitionConstant folding evaluates expressions with known values at compile time, so the binary ships the precomputed…
Escape Analysis - CI/CD Glossary DefinitionEscape analysis determines whether an object outlives its creating function, letting the compiler stack-alloc…
Optimization Level - CI/CD Glossary DefinitionAn optimization level (-O0 to -O3, -Os) tells the compiler how aggressively to optimize, trading compile time…