# gsplit-dwarf

Creates a separate object file containing DWARF debug information.

## Syntax

Linux: | -gsplit-dwarf

Windows: | None

## Arguments

None

## Default

OFF | No separate object file containing DWARF debug information is created.

## Description

This option creates a separate object file containing DWARF debug information. It causes debug information to be split between the generated object (.o) file and the new DWARF object (.dwo) file.

The DWARF object file is not used by the linker, so this reduces the amount of debug information the linker must process and it results in a smaller executable file.

For this option to perform correctly, you must use binutils-2.24 or later. To debug the resulting executable, you must use gdb-7.6.1 or later.

### Note

If you use the split executable with a tool that does not support the split DWARF format, it will behave as though the DWARF debug information is absent.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Output, Debug, and Precompiled Header (PCH) Options