[Tinyos-devel] Compiler Flags in telosb.target

Andreas Köpke koepke at tkn.tu-berlin.de
Sun Aug 10 23:54:28 PDT 2008


Am Samstag, den 09.08.2008, 13:49 -0700 schrieb Philip Levis:
> On Aug 9, 2008, at 10:47 AM, Geoffrey Werner-Allen wrote:
> 
> > For whatever reason, the telosb.target makefile target overrides  
> > the usual -Os optimization setting in favor of the slightly less  
> > exciting -O.  For some time now I've been overriding this on the  
> > command like with CFLAGS, particularly helpful when you are  
> > compiling stuff that is right at the TMote space limitations and - 
> > Os will shave of a kilobyte or two.
> >
> > I'm not sure what the reasoning behind -O is but is it possible  
> > that this could be a legacy thing and safely removed?  I talked to  
> > Kevin and he didn't understand it either but suggested I ping the  
> > list to see if anyone does.
> 
> I think Vlado brought this up on a core WG call a few months ago.  
> IIRC, there are code generation problems with -Os? David Gay knows  
> the details.
> 
> Phil

With the latest gcc 3.2.3 -Os seems to work always. So I guess the one
or other bug got fixed lately. 

Best, Andreas





More information about the Tinyos-devel mailing list