The CPU_STACK_ALIGNMENT macro is set to indicate the byte alignment requirement for the stack. This alignment requirement may be stricter than that for the data types alignment specified by CPU_ALIGNMENT. If the CPU_ALIGNMENT is strict enough for the stack, then this should be set to 0.
The following illustrates how the CPU_STACK_ALIGNMENT macro should be set when there are no special requirements:
#define CPU_STACK_ALIGNMENT 0
NOTE: This must be a power of 2 either 0 or greater than CPU_ALIGNMENT. [XXX is this true?]
Copyright © 1988-2007OAR Corporation