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* with EDG compiler
icpc -S -omyasm.s x.cpp 
OS X* with CLANG compiler
icl++ -S -omyasm.s x.cpp 
//  Windows* OS
icl /Famyasm x.cpp 

See Also

For more complete information about compiler optimizations, see our Optimization Notice.