ftrapuv, Qtrapuv

Initializes stack local variables to an unusual value to aid error detection.

IDE Equivalent

Windows: Data > Initialize stack variables to an unusual value

Linux: None

Mac OS X: Run-Time > Initialize Stack Variables to an Unusual Value

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-ftrapuv

Windows:

/Qtrapuv

Arguments

None

Default

OFF

The compiler does not initialize local variables.

Description

This option initializes stack local variables to an unusual value to aid error detection. Normally, these local variables should be initialized in the application.

The option sets any uninitialized local variables that are allocated on the stack to a value that is typically interpreted as a very large integer or an invalid address. References to these variables are then likely to cause run-time errors that can help you detect coding errors.

This option sets option -g (Linux and Mac OS X) and /Zi or /Z7 (Windows).

Alternate Options

None

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.