Software Development on Quest
Software Development on Quest
Software Development on Quest
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Stuck? Need help?<br />
quest-help@northwestern.edu<br />
Inlining<br />
• What is inlining?<br />
o Replacing a functi<strong>on</strong> call with the code from the<br />
functi<strong>on</strong>.<br />
o Eliminates the cost of the functi<strong>on</strong> call and return,<br />
improves instructi<strong>on</strong> cache.<br />
• When is inlining important?<br />
o When the functi<strong>on</strong> is a hot spot.<br />
o When the call-overhead to work ratio is high.<br />
o When it can benefit from interprocedural<br />
optimizati<strong>on</strong>.<br />
• Use -ipo or -ip to allow the compiler to inline.