### disable_stackalloc

Controls the compiler method used to grow the size of the stack.

##### Syntax

#pragma disable_stackalloc on | off | reset

##### Targets

Intel x86

##### Remarks

The compiler controls how stack space is grown as follows:

- off – for each object on the stack larger than 4096 bytes, the compiler calls a runtime routine to touch each new page on the stack to tell the OS to allocate more stack space.
- on – the compiler only touches the last (topmost) page of the stack after allocating local space.

NOTE Use of this pragma is required for Win32 code.

This pragma does not correspond to any panel setting. To check this setting, use the __option (disable_stackalloc). The default setting for Win32 targets is off.