Hi, Faced with a problem using some legacy code on MSP430F5529 . I have two constant structures, the first 9 bytes the other some arbitrary length. The second structure must be immediately after the first. I am happy to put a #pragma in place, but re-writing the structures is out of the question. Is it possible to achieve single byte alignment in constant data? Here is what I've already tried, but does not work due to an alignment warning: #pragma pack(1) #pragma location = 0x4800 const Luint8 g_pDescriptor[9] = {...} #pragma pack(1) #pragma location = 0x4809 const Luint8 g_pInterface[] = {...} Thanks Stomp!
↧