INF: /Zi Causes Code Motion Optimization Suppression

ID Number: Q32892

4.00 5.00 5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

In Microsoft C versions 4.0, 5.0, 5.1, 6.0, 6.0a, 6.0ax, and C/C++

version 7.0, compiling with /Zi and no other switches causes certain

code motion optimizations to be suppressed (that is, the code generated

for a program with the defaults and with /Zi may differ).

You can override this default behavior by explicitly specifying the

default optimizations on the command line. For example, you can

compile with the following command line to get the same code with or

without /Zi:

cl /Zi /Ot file.c

However, it is recommended that you compile with the /Od option before

using CodeView to suppress all optimizations.

Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax 7.00