AnsweredAssumed Answered

HC(S)12 Compiler alignment

Question asked by Markus Kandler on May 22, 2014
Latest reply on Apr 9, 2015 by Carlos Barcala


I'm developing on the S912ZVML12 using codewarrior. Is there any possibility to force alignment for a variable.

Something linke this:

volatile uint8 SomeArray[6][4] __attribute__((aligned (4)));

With this line of code the Compiler writes:

"volatile uint8 SomeArray[6][4] __attribute__((aligned (4))) => illegal or unsupported __attribute__"

How can the 32bit alignment forced for this Array?