On Mon, 30 Jun 2003 21:09:23 -0400, you wrote: >Be careful: > >>typedef struct recpack_t { >> unsigned int abc: 8; >> unsigned int def: 8; >> } recpack_t; > >Does _not_ ensure byte ordering the same as: > >typedef struct recpack_t { > unsigned char abc; > unsigned char def; > } recpack_t; > > All you can do is check the assembly code generated by the compiler being used. As I noted before, with this compiler "unsigned char" is going to be 16 bits, so bitfields are required to get a 8 bit value. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu