C only


Substitutes inline code for calls to built-in function alloca.


Read syntax diagramSkip visual syntax diagram>>- -ma--------------------------------------------------------><


If #pragma alloca is unspecified, or if you do not use -ma, alloca is treated as a user-defined identifier rather than as a built-in function.

This option does not apply to C++ programs. In C++ programs, you must instead specify #include <malloc.h> to include the alloca function declaration.


To compile myprogram.c so that calls to the function alloca are treated as inline, enter:

xlc myprogram.c -ma

Related information