On 6/7/07, Zhifeng Lai <[EMAIL PROTECTED]> wrote:
Dear David,
I run the program in Cygwin, WinXP. How can I specify the platform? I am
just not aware of this.
That's what the documentation is for. Try 'man ncc', and 'man mig',
and look at the -target option.
It is weird that:
typedef struct MyMsg1 {
uint8_t field1;
union {
start_sense_args field2;
} args;
} MyMsg1;
typedef struct MyMsg2 {
union {
start_sense_args field2;
} args;
} MyMsg2;
nesC interpret MyMsg1 as a 96-bit structure and MyMsg2 as a 64-bit
structure, where start_sense_args is a 64-bit structure.
You need to learn more about C and processor architecture, then. Read
up on data type alignment... (on a 32-bit processor like the x86, it's
common to require that 32-bit or greater types be aligned on a 32-bit
boundaries - this is what's happening in the example above).
David Gay
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help