#pragma alloca (C, AIX)

Description

The #pragma alloca directive specifies that the compiler should provide an inline version of the function alloca(size_t <size>). The function alloca(size_t <size>) can be used to allocate space for an object. The amount of space allocated is determined by the value of <size>, which is measured in bytes. The allocated space is put on the stack.

Syntax

You must include the #pragma alloca directive to have the compiler provide an inline version of alloca.

Once specified, it applies to the rest of the file and cannot be turned off. If a source file contains any functions that you want compiled without #pragma alloca, place these functions in a different file.



Preprocessor Directives - An Overview
Preprocessor Directive - #pragma


#pragma stack_align