• C++: Aligned byte fields not possible in classes?
    Hi, if I want to define a 4byte aligned char array in C, then I typically would declare: __align(4) char acBuf[20]; In C++, inside a class, this unfortunately fails (Error #328: invalid storage...
  • C++: Aligned byte fields not possible in classes?
    Hi, if I want to define a 4byte aligned char array in C, then I typically would declare: __align(4) char acBuf[20]; In C++, inside a class, this unfortunately fails (Error #328: invalid storage...
  • bit field
    Hi All, I have a struct: union U { unsigned char c; struct { unsigned char bit0 : 1; unsigned char bit1 : 1; unsigned char bit2 : 1; . . . }S; }; } If I test multiple bits together...
  • bit field
    Hi All, I have a struct: union U { unsigned char c; struct { unsigned char bit0 : 1; unsigned char bit1 : 1; unsigned char bit2 : 1; . . . }S; }; } If I test multiple bits together...
  • signed bit fields
    Does anybody knows, Keil C compiler V7.xx supports bit fields with signed types or not? The code always generated same as for unsigned types. This is compiler bug or feature? My code compiled with Keil...