This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Is a function actually inlined?
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Alex Vinokur <alexvn at connect dot to>, gcc-help at gcc dot gnu dot org
- Date: Wed, 08 Oct 2003 07:02:26 -0500
- Subject: Re: Is a function actually inlined?
Hi Alex,
If you don't put in a request to optimize the code (e.g., -O2) they won't be inlined. If I recall correctly.
Try:
g++ -O2 -fverbose-asm -save-temps t.cpp
The -fkeep-inline-functions flag might be useful, too.
HTH,
--Eljay