[prev in list] [next in list] [prev in thread] [next in thread] 

List:       crux
Subject:    Re: optimizations
From:       "A. Pagaltzis" <pagaltzis () gmx ! de>
Date:       2003-10-30 2:00:27
[Download RAW message or body]

* Nathan Ladd <nladd@austin.rr.com> [2003-10-27 07:35]:
> Did you try -Os?  -O3 makes speed gains at the expense of
> binary size, however in the case of large binaries, the
> performance gains you get from the decreased size of -Os
> (smaller memory footprint, less to load at runtime, etc) trump
> the raw speed considerations.

Absolutely. -Os is like -O2, except it disables all optimizations
that increase code side.  In addition -O3 tends to generate far
bigger code than -O2; depending on your apps, the size increase
easily negates the better optimizations (instruction cache et
al..). "-O2 -fomit-frame-pointer" is a good default; more than
that should only be used when you *know* it'll help.

-- 
Regards,
Aristotle
 
"If you can't laugh at yourself, you don't take life seriously enough."
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic