-ma

C only

Description

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

Syntax

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

Notes

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.

Example

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

xlc myprogram.c -ma

Related information