-qsmallstack

Pragma equivalent

None.

Purpose

Reduces the size of the stack frame.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nosmallstack-.   
>>- -q--+-smallstack---+---------------------------------------><

Defaults

-qnosmallstack

Usage

Programs that allocate large amounts of data to the stack, such as threaded programs, may result in stack overflows. This option can reduce the size of the stack frame to help avoid overflows.

This option is only valid when used together with IPA (the -qipa, -O4, -O5 compiler options).

Specifying this option may adversely affect program performance.

Predefined macros

None.

Examples

To compile myprogram.c to use a small stack frame, enter:
xlc myprogram.c -qipa -qsmallstack

Related information



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us