Avoid gcc deleting intermediate files while compiling C Code
We know our C Code goes through four stages: Preprocessing, compiling, assembling and linking
gcc creates many intermediate files for each stage. By default gcc deletes these intermediate files. You can instruct gcc to avoid deleting intermediate files passing '--save-temps' option to it.
Observe from the above screenshot, the intermediate files after
gcc creates many intermediate files for each stage. By default gcc deletes these intermediate files. You can instruct gcc to avoid deleting intermediate files passing '--save-temps' option to it.
Observe from the above screenshot, the intermediate files after
- Preprocessing (*.i)
- Compiling (*.s)
- assembling (*.o)
Are placed in the same directory
Comments
Post a Comment