This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: -Os in conjunction with -fno-inline
- From: "Ilja Golshtein" <ilejn at yandex dot ru>
- To: RMansfield at qnx dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Sep 2005 09:50:51 +0400 (MSD)
- Subject: RE: -Os in conjunction with -fno-inline
- References: <3518719F06577C4F85DA618E3C37AB910138920E@nimbus.ott.qnx.com>
- Reply-to: ilejn at yandex dot ru
>The idea of inlining is to remove function prologues and epilogues. When you
>set -fno-inline, the functions do not get inlined and the prologues and
>epilogues account for the slight increase in size.
In other words -Os use good threshold size (better then just 0) to make decision if function should be inlined.
My mistake I was (don't know why) convinced -Os implies -fno-inline.
Thanks.
--
Best regards
Ilja Golshtein