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.
Disabling Optimization (/Od)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /Od
 
     This option turns off optimization. Because optimization can
     involve rearrangement of instructions, specify the /Od option when
     you plan to use CodeView with your program.
     See: Prepare for Debug (/Zi)
 
     Turning off or restricting optimization of a program usually
     increases the size of the generated code.
                                    -♦-