Tells the compiler to save intermediate files created during compilation.
IA-32, Intel® 64 architectures
Linux and Mac OS X: | -save-temps -no-save-temps |
Windows: | /Qsave-temps /Qsave-temps- |
None
Linux and Mac OS X: -no-save-temps |
On Linux and Mac OS X systems, the compiler deletes intermediate files after compilation is completed. On Windows systems, the compiler saves only intermediate object files after compilation is completed. |
This option tells the compiler to save intermediate files created during compilation. The names of the files saved are based on the name of the source file; the files are saved in the current working directory.
If -save-temps or /Qsave-temps is specified, the following occurs:
The object .o file (Linux and Mac OS X) or .obj file (Windows) is saved.
The assembler .s file (Linux and Mac OS X) or .asm file (Windows) is saved if you specified -use-asm (Linux or Mac OS X) or /Quse-asm (Windows).
If -no-save-temps is specified on Linux or Mac OS X systems, the following occurs:
The .o file is put into /tmp and deleted after calling ld.
The preprocessed file is not saved after it has been used by the compiler.
If /Qsave-temps- is specified on Windows systems, the following occurs:
The .obj file is not saved after the linker step.
The preprocessed file is not saved after it has been used by the compiler.
This option only saves intermediate files that are normally created during compilation.
None
If you compile program my_foo.c on a Linux or Mac OS X system and you specify option -save-temps and option -use-asm, the compilation will produce files my_foo.o and my_foo.s.
If you compile program my_foo.c on a Windows system and you specify option /Qsave-temps and option /Quse-asm, the compilation will produce files my_foo.o and my_foo.asm.
Copyright © 1996-2011, Intel Corporation. All rights reserved.