alloc

Option Type Default Value #pragma options  C C++
-flag - - x x

Syntax

    -qalloca

Purpose
Substitutes inline code for calls to function alloca as if #pragma alloca directives are in the source code.

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.

C++ programs must 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 -qalloca


List of Batch Compiler Options and Their Defaults
Options that Define the Compiler Object Code Produced
Equivalent Batch Compile-Link and Incremental Build Options