[Tinyos-devel] Compiler Flags in telosb.target

Philip Levis pal at cs.stanford.edu
Wed Aug 13 08:57:58 PDT 2008


On Aug 10, 2008, at 11:54 PM, Andreas Köpke wrote:

> 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.

Let's wait for David Gay to return from vacation and check with him.

Phil


More information about the Tinyos-devel mailing list