AnsweredAssumed Answered

Compiler command for aligning all arrays

Question asked by Roger Helfenberger on Jan 15, 2018
Latest reply on Jan 15, 2018 by Roger Helfenberger



I am working with a S32R274 Processor and build the Code with the S32 Studio.

I face the issue, that parameter arrays which are loaded by the SPT must be aligned.


Currently I use global arrays like:

uint32_t fft256_command_list[] __attribute__ ((aligned (8))) = { ... };


and add the alignment manually to each array.


Is there a way to set this alignment by default (as compiler setting) ?


Thanks and best regards