You can use the /Fa option (Windows*) or -S and -o options (Linux*) to specify an alternate name for an assembly file. The compiler generates an assembly file named myasm.asm (Windows) or myasm.s (Linux).
Examples:
This content is specific to C++; it does not apply to DPC++.
// Linux icpx -S -omyasm.s x.cpp
// Windows icx /Famyasm x.cpp
This content is specific to DPC++.
// Linux dpcpp -S -omyasm.s x.cpp
// Windows dpcpp /Famyasm x.cpp