fill_stack

Instructs the compiler to initialize locals to a fixed bit pattern (0xCC) upon entry to a function.

Syntax

#pragma fill_stack on | off | reset

Targets
Intel x86
Remarks

Use of this pragma helps to diagnose program failures or crashes caused by the use of uninitialized variables. I.e., a bit pattern of 0xCC is not a normally-encountered integer or floating-point value, and 0xCCCCCCCC is almost never a valide pointer value. If the program counter does point to such a variable, it will be “executed” as an int3 breakpoint.

This pragma does not correspond to any panel setting. To check this setting, use the __option (fill_stack). The default setting for is off at optimization level 0.