If you read the gcc docs carefully you will see that function inlining is
only with -O3. You can also turn it on by itself with -finline-functions.

See
http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Optimize-Options.html#Optimize-O
ptions for more info.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Robert
Mitschke
Sent: Saturday, December 04, 2004 6:30 AM
To: [email protected]
Subject: [Mspgcc-users] Inline C Functions

Hi all,

I am using the release version of mspgcc. In our project we have a lot of
very small functions (few lines)
which were created to have a good code design, and to allow newbees to
understand the code easily.
However of course these functions of a few lines each are pretty inefficient
and I tried to declare them all
inline. However the output .lst file still shows all the functions
separately and not inline.

I do use -O for optimization, but still have -g switched on while compiling.
Is there a way to get the
compiler to respect the inline declarations?

Would very much appreciate a pointer in the right direction,

Regards,
Robert



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to