COMPILER DESIGN

TOOLS AND TECHNIQUES FOR COMPILER DESIGN

LLVM

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In C/C++, any function can be inlined to improve performance
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Inline functions are commonly used when the function definitions are small, and the functions are called several times in a program. Using inline functions saves time to transfer the control of the program from the calling function to the definition of the called function.

Detailed explanation-2: -Pick the incorrect statement about inline functions in C++? Explanation: Inline are functions that are expanded when it is called. The whole code of the inline function gets inserted/substituted at the point of call.

Detailed explanation-3: -Which of the following statements regarding inline functions is correct? It speeds up execution.

There is 1 question to complete.