AnsweredAssumed Answered

Stack Alignment requirement for MPC5777M / S32ds

Question asked by jschloss on Jul 18, 2018
Latest reply on Aug 16, 2018 by jschloss

Hi,

 

Is the stack allowed to have 8 byte alignment on the MPC5777M? I see the linker script sets main's stack aligned to 16 bytes, but our OS vendor set the OS thread stacks to 8. It looks like NXP's published FreeRTOS port uses 32 byte alignment.

 

Using the GNU Compiler Collection (GCC): RS/6000 and PowerPC Options makes it sound like it depends if the program is built in -meabi or -mno-eabi mode, but looking through some build settings I can't see if we are building in full EABI mode.

 

Are we ok with 8 byte aligned stacks, or is there a reason to go wider?

Outcomes