View Single Post

   
  #3 (permalink)  
Old 02-21-2008, 08:02 AM
sfu
 
Posts: n/a
Default Re: g++ -O2 -Os , witch one realy ?

On Wed, 01 Sep 2004 19:43:37 -0600, oldNbald wrote:

> On Thu, 02 Sep 2004 01:19:05 +0200, sfu scribbled on a wall:
>
>> Hi ,
>>
>> Yesterday i tried to emerge some kde apps , so i saw it writes strange
>> things on my screen . I`m thinkig of something like that: g++ [...]
>> -O2 -Os -march=athlon-tbird [...] Which of this optimizations compilator
>> realy use ? [...]

>
> Is this what you are asking about?
>

well my english isn`t very good
but i checked this with a liitle program writing a file to disk ,
with -Os i is 4 kb and with O2 5kb.
When i write in makefile :
CFLAGS = -s -Os -O2 -march=athlon-tbird
it uses O2 and binary is 5 kb
when i write
CFLAGS = -s -O2 -Os -march=athlon-tbird
it uses Os and binary is 4 kb

--
Marcin

Reply With Quote