I am using the Stellaris LM3S9B90 and CCS4.2. I want to create structs that may be odd byte sizes and use "sizeof ( )" to define the size exactly. Right now it seems that the compiler pads to the struct to make it an even boundary. I DON'T WANT THIS. How do I remove it?? Can't find any good information on #pragmas in your documentation. Other compilers allow use of #pragma pack(1) to force byte size packing with no padding. See below for example of struct:
struct ACT_ASSIGN_NADDR_RQ {
unsigned short vendor_id;
unsigned short ssn;
char e0_naddr;
};
#define ACT_ASSIGN_NADDR_RQ_SZ (sizeof(struct ACT_ASSIGN_NADDR_RQ))
ACT_ASSIGN_NADDR_RQ_SZ should be defined as 5, but is being defined as 6.