Specifying Object Files

You can use the /Fo option (Windows* OS) or -c and -o options (Linux* OS and OS X*) to specify an alternate name for an object file. In this example, the compiler generates an object file name myobj.obj (Windows* OS) or myobj.o (Linux* OS and OS X*).

// Linux* OS and OS X* with EDG compiler
icpc -c -omyobj.o x.cpp 
// OS X* with CLANG compiler
icl++ -c -omyobj.o x.cpp
// Windows* OS
icl /Fomyobj x.cpp 

See Also

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