Beginner
Compilers & Programming Language Theory
Q18 / 100
What is function inlining?
Correct! Well done.
Incorrect.
The correct answer is B) A compiler optimization replacing a function call with the function body, eliminating call overhead and enabling further optimizations
B
Correct Answer
A compiler optimization replacing a function call with the function body, eliminating call overhead and enabling further optimizations
Explanation
Inlining eliminates call overhead (save/restore registers, jump, return). More importantly, it exposes the callee's code to surrounding optimizations. The compiler decides when inlining is beneficial.
Progress
18/100