[Tinyos-devel] Compiler Flags in telosb.target
Philip Levis
pal at cs.stanford.edu
Sat Aug 9 13:49:53 PDT 2008
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
More information about the Tinyos-devel
mailing list