On Mar 27, 2006, at 2:51 PM, jose m wrote:
Take a look at this
typedef struct ps_message_t {
uint8_t header;
uint16_t identifier;
uint8_t message_size;
uint8_t message_type;
uint8_t message[MAX_PS_MESSAGE_SIZE];
}ps_message_t;
when compiled and running, identifier occupies 3
bytes. Why?
Google for "C struct alignment" Phil _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
