Share via


/GZ - Catch Release Errors in Debug Build

This option enables run-time checks to catch bugs that only occur in a Release build while in a Debug build mode. Some bugs typically arise only when you switch to a Release build.

/GZ is not compatible with any Release build option. The /GZ option disables any #pragma optimize statements in your code.

The /GZ option does the following:

  • Auto-initialization of local variables
  • Function pointer call stack validation
  • Call stack validation

See Also

About Microprocessor Compilers | ARM Guide | Hitachi Guide | MIPS Guide

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.