This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: to reduce footprint


Lin George <george4academic@yahoo.com> writes:

> Thanks Ian, do you mean using -Os or -O2 is an exception of speed/size trade-off, which will both have good performance nad have smaller size?

I don't understand the question.

Both -Os and -O2 are documented in the compiler manual.  Please read
it.

Ian

> ----- Original Message ----
> From: Ian Lance Taylor <iant@google.com>
> To: Lin George <george4academic@yahoo.com>
> Cc: binutils@sourceware.org
> Sent: Thursday, December 21, 2006 1:40:05 AM
> Subject: Re: to reduce footprint
> 
> 
> Lin George <george4academic@yahoo.com> writes:
> 
> > Thanks Ian. After reading the manual for -Os, it seems that using -Os can both achieve the better performance and reduce the footprint. Is that correct?
> > If yes, it is amazing that both size can be reduced the speed is faster. Because I think speed and size are balanced parameters -- if you increase speed, the footprint will be worse (bigger). Any comments?
> > 
> > BTW: Quote from manual > -Os is ok to optimize for speed.
> 
> -Os is equivalent to -O2, except that when there is a time/space
> tradeoff it optimizes to reduce space.
> 
> Ian
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 


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