www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/03/19/02:34:32

Message-Id: <m10Nt5v-0000GIC@chkw386.ch.pwr.wroc.pl>
Date: Fri, 19 Mar 99 06:49
From: strasbur AT chkw386 DOT ch DOT pwr DOT wroc DOT pl (Krzysztof Strasburger)
To: pgcc AT delorie DOT com
Subject: Re: Questions on inlining of code
Reply-To: pgcc AT delorie DOT com

>  > 1. Is it possible to disable automatic inlining (compiler switches -O3 or 
>  > -finline) while still respecting the inline declaration in the source code?
>  > I'd like to compile with max optimization (-O6) while avoiding the bloat 
>  > that comes with aggressive inlining of code.  At the same time, though, I 
>  > don't want to disabled the inlining of code explicitly declared as such.
>The only difference between -O2 and -On for n > 2 is automatic function
>inlining.  So, just use -O2.
This is not true. There are many other transformations of the code enabled
by higher n. But you can disable code inlining. Just use -O6 with
-fno-inline-functions.
Krzysztof

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019