[Tinyos-host-mote-wg] Re: [Tinyos-2.0wg] recommendation for coding
convention on state variables
Philip Levis
pal at cs.stanford.edu
Thu Oct 13 10:54:43 PDT 2005
On Oct 13, 2005, at 10:09 AM, Joe Polastre wrote:
>
> _asm doesn't work for Code Composer. Affects all TOSH_*_PIN()
> macros. Use CC asm instead.
>
TOSH_PIN should go away, anyways.
> remove all lines starting with #
>
It doesn't consider #line directives?
> long long is non standard (change to just 'long')
>
That's 64->32 bits...
> remove all register definitions
>
> replace all '__atributed ((packed))'
>
> remove debug enums
>
> change all enums to #define
>
> remove all 'static' keywords
>
> remove all 'inline' keywords
>
> remove 'volatile' keywords
>
CC doesn't support these keywords? I don't know about inline, but
static is most definitely a basic C keyword (how else do you
constrain scope?).
It sounds like code composer doesn't support a lot of basic C semantics.
That being said, I doubt David Gay would mine if you wrote an
alternative unparse.c that output CC friendly code.
Phil
_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg
More information about the Tinyos-host-mote-wg
mailing list