AnsweredAssumed Answered

Codewarrior Kinetis Compiler

Question asked by Luis Fresca on Jun 22, 2011
Latest reply on May 16, 2012 by Luis Casado

Hi,

 

I'm doing some development with the CodeWarrior 10.1 and the TWR-K60N512 development kit.

I'm having some trouble figuring out how to byte align some structures in my code.

Since the compiler is gcc based I was wondering if it supports the #pragma pack() directive?

I couldn't find any information in the compiler documentation, and tried it in my code, but it returns a warning stating that it's an illegal pragma.

Are there any language extensions that need to be turned on for the pragma to work, or is it simply not supported by the compiler.

 

 

Thanks in advance,

 

Best Regards

 

Luis Fresca

Outcomes