• #pragma pack
    Does the realview arm compiler support the following syntax: #pragma pack(push, 1) and #pragma pack(pop) or do I need to separate it into #pragma push #pragma pack(1) and #pragma pop...
  • Packed structure is not packed
    I would like to have a packed structure (because I'm gonna store those data in flash, and need it as small as possible). I'm using Keil 5.22 on nRF51822. typedef struct { uint16_t packedValue;...
  • #pragma pack(n) scope
    Does #pragma pack(n) apply to all the structures in a source code or it has to be applied to each structure separately ? It's not clear from the manual. In one place it says: "You can use #pragma...
  • STM32F4 Problem with #pragma pack(x)
    Hello, Depending on the control #pragma pack(x), the result of the compilation is different. In C++, Here's the problem, but it is more difficult without picture: With #pragma pack(2), the result...
  • problem with shorts in packed structures
    Hi I am using an analog ADuc7022 with the Keil CARM compiler. With a packed structure containing bytes and shorts, I cant access the short data values correctly. For example if I have a short in...