Description
The #pragma stack_align directive allows you to specify the function(s) for which stack alignment rules must be enforced because they are called by code not compiled with the IBM C and C++ Compilers.
Syntax
#pragma stack_align ( function [, function]* )
Code generated by the IBM C and C++ Compilers ensures that the stack remains aligned on a boundary such that access to operands stored on the stack can be executed more efficiently. However, the stack alignment of a function cannot be guaranteed if the function is called by code that is not compiled with the IBM C and C++ Compilers. To be able to maintain an efficiently aligned stack, the compiler must be told when a function could be called by code that has not compiled with IBM C and C++ Compilers. The #pragma stack_align can be used to identify such functions so that the IBM C and C++ Compilers can generate code to enforce the alignment rule in these functions for optimal performance. Examples of such functions are exported functions in DLLs.