-Os in conjunction with -fno-inline

Ilja Golshtein ilejn@yandex.ru
Fri Sep 30 05:51:00 GMT 2005


>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



More information about the Gcc-help mailing list