i am using keil3.34 gnu complier. below code is related real view complier
typedef __packed union { WORD W; __packed struct { BYTE L; BYTE H; } WB; } WORD_BYTE;
now how __packed keyword using in gnu compiler in this code ?
typedef union { WORD W; struct { BYTE L; BYTE H; } __attribute__((packed)) WB; } __attribute__((packed)) WORD_BYTE;
thanks Rodrigo Martins for reply these code related real view code
IENABLE // for handles nested interrupt IDISABLE
*((_packed WORD *)EP0Buf) = 0;
now how convert it in gnu complier.??
The GCC Documentation is available online here:
http://gcc.gnu.org/onlinedocs/