3.4.28 Save-temps Option

The -save-temps option instructs the assembler to keep temporary files after compilation has finished.

The intermediate files will be placed in the current directory and have a name based on the corresponding source file. Thus, compiling foo.s with -save-temps would produce the foo.o object file.

The -save-temps=cwd option is equivalent to -save-temps.

The -save-temps=obj form of this option is similar to -save-temps, but if the -o option is specified, the temporary files are placed in the same directory as the output object file. If the -o option is not specified, the -save-temps=obj switch behaves like –save-temps.