Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

Od

Disables all optimizations.

Syntax

Linux:

None

Windows:

/Od

Arguments

None

Default

OFF

The compiler performs default optimizations.

Description

This option disables all optimizations. It can be used for selective optimizations, such as a combination of /Od and /Ob1 (disables all optimizations, but enables inlining).

This option also causes certain /warn options to be ignored.

IDE Equivalent

Visual Studio: Optimization > Optimization

Alternate Options

Linux: -O0

Windows: /optimize:0

See Also