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

  • Preprocessing (*.i)
  • Compiling (*.s)
  • assembling (*.o)
Are placed in the same directory


Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig