This is the mail archive of the gcc@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]

Re: Debug formats on Linux


On Fri, Nov 03, 2000 at 08:50:56AM +0100, jfm2@club-internet.fr wrote:

[..snip..]

> 
> According to doc -finline-function does not inline everything only
> small functions.  But I agree about -O3 being a double edged sword
> duie to code size increase.

sure, I never use -O3 for my own programs - it is much better to use
the inline keyword where apropriate and -funroll-loops where it helps.

> I was using the byte benchamrk.  I also noticed thazt on some tests
> cpu=pentiumpro was faster than arch=pentiumpro, and on the FP
> emulation test cpu=i386 beats cpu=i686 or arch=i686 by around 20%.
> This suggests that there is something wrong with the 2.95 optimizer.

benchmarks aren't good for my purposes, they test the optimizer on 
"average" code. Very often the most performance critical code will 
be already programmed for speed so it has little common with average
code.
Mostly I found march=chip produce faster but often bigger code.


Bye
Richard



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