Tells the compiler to save intermediate files created during compilation.
Linux: | -save-temps -no-save-temps |
Windows: | None |
None
Linux*
systems:
-no-save-temps |
On Linux systems, the compiler deletes intermediate 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 option save-temps is specified, the following occurs:
The object .o file (Linux) is saved.
If -no-save-temps is specified on Linux 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.
This option only saves intermediate files that are normally created during compilation.
None