# S

Causes the compiler to compile to an assembly file only and not link.

## Syntax

Linux: | -S

macOS: | -S

Windows: | /S

## Arguments

None

## Default

OFF | Normal compilation and linking occur.

## Description

This option causes the compiler to compile to an assembly file only and not link.

On Linux* and macOS* systems, the assembly file name has a .s suffix. On Windows* systems, the assembly file name has an .asm suffix.

## IDE Equivalent

Visual Studio: None

Eclipse: Output Files > Generate Assembler Source File

Xcode: Output Files > Generate Assembler Source File

## Alternate Options

Linux and macOS*: None

Windows: /Fa

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

## See Also

Fa compiler option