This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]