C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.
                                    -♦-