User and Reference Guide for the Intel® C++ Compiler 14.0

Specifying Assembly Files

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

//  (Linux* OS and OS X*)
icpc -S -omyasm.s x.cpp 
//  (Windows* OS)
icl /Famyasm x.cpp 

See Also


Submit feedback on this help topic