C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Generating Debugging Information (/Zi)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /Zi
 
     This option produces an object file containing full symbolic
     debugging information for the CodeView debugger. This symbolic
     information is a map of your source code that the debugger uses.
     It includes such things as variable names and their types,
     function names and their return types, and the number and name of
     all of the program's segments.
 
     If the /c (compile only) option is not specified, CL passes the
     /CO link option (Prepare for CodeView) to the linker.
 
     If you give the /Zi option with no explicit /O options, some
     optimizations involving code motion are suppressed. You may want
     to compile with the /Od option to suppress all optimizations
     before using CodeView.
                                    -♦-