Skip to content

Latest commit

 

History

History
73 lines (62 loc) · 2.03 KB

File metadata and controls

73 lines (62 loc) · 2.03 KB
title -Od (Disable (Debug)) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
f1_keywords
/od
dev_langs
C++
helpviewer_keywords
no optimizations
fast compiling
/Od compiler option [C++]
disable optimizations
Od compiler option [C++]
-Od compiler option [C++]
disable (debug) compiler option [C++]
ms.assetid b1ac31b7-e086-4eeb-be5e-488f7513f5f5
caps.latest.revision 13
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

/Od (Disable (Debug))

Turns off all optimizations in the program and speeds compilation.

Syntax

/Od  

Remarks

This option is the default. Because /Od suppresses code movement, it simplifies the debugging process. For more information about compiler options for debugging, see /Z7, /Zi, /ZI (Debug Information Format).

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Working with Project Properties.

  2. Click the C/C++ folder.

  3. Click the Optimization property page.

  4. Modify the Optimization property.

To set this compiler option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.Optimization%2A.

See Also

/O Options (Optimize Code)
Compiler Options
Setting Compiler Options
/Z7, /Zi, /ZI (Debug Information Format)