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*).

For C/C++ projects:

// Linux and macOS*
icpc -S -omyasm.s x.cpp 
// Windows
icl /Famyasm x.cpp 

See Also