Important: The information in this document is obsolete and should not be used for new development.
Stack Alignment
To improve performance, the CFM-68K runtime architecture requires a 4-byte (minimum) alignment for all parameters pushed onto the stack. This applies to stack space used in function prologs (that is, stack space reserved for automatic memory variables and temporaries) as well as space allocated using thealloca
dynamic stack allocation operation. TypesUInt8
,SInt8
,Boolean
,UInt16
, andSInt16
parameters are passed in the least significant byte or bytes with padding added. Data typesstruct
,union
, andextended
are passed in the most significant bytes, with padding added afterwards if necessary.