You can use the /Fo option (Windows*) or -c and -o options (Linux* and macOS*) to specify an alternate name for an object file. In this example, the compiler generates an object file name myobj.obj (Windows) or myobj.o (Linux and macOS*).
Examples:
This content is specific to C++; it does not apply to DPC++.
// Linux and macOS*
icpx -c -omyobj.o x.cpp
// Windows icx /Fomyobj x.cpp
This content is specific to DPC++.
// Linux and macOS*
dpcpp -c -omyobj.o x.cpp
// Windows dpcpp /Fomyobj x.cpp