Skip to main content

IAR Embedded Workbench for Arm 9.70.x

Stack alignment

In this section:

In 32-bit mode, the default cstartup code automatically initializes all stacks to an 8-byte aligned address.

In 64-bit mode, the default cstartup code automatically initializes all stacks to a 16-byte aligned address.

For more information about aligning the stack, see Calling convention and more specifically Special registers in 32-bit mode and Stack parameters and layout.