# Specifying Assembly Files

You can use the /Fa option (Windows*) or -S and -o options (Linux* and macOS*) to specify an alternate name for an assembly file. The compiler generates an assembly file named myasm.asm (Windows) or myasm.s (Linux and macOS*).

Examples:

This content is specific to C++; it does not apply to DPC++.

    // Linux and macOS*
    icpx -S -omyasm.s x.cpp

    // Windows
    icx /Famyasm x.cpp

This content is specific to DPC++.

    // Linux and macOS*
    dpcpp -S -omyasm.s x.cpp

    // Windows
    dpcpp /Famyasm x.cpp

Parent topic: Using the Command Line

## See Also

-S compiler option
-o compiler option
/Fa compiler option