# Gy

Separates functions into COMDATs for the linker. This is a deprecated option. There is no replacement option. This content is specific to C++; it does not apply to DPC++.

## Syntax

Linux: | None

Windows: | /Gy /Gy-

## Arguments

None

## Default

ON | The compiler separates functions into COMDATs.

## Description

This option tells the compiler to separate functions into COMDATs for the linker.

## IDE Equivalent

Visual Studio: Code Generation > Enable Function-Level Linking

Eclipse: None

## Alternate Options

None

Parent topic: Miscellaneous Options