0

There are several steps involved from the stage of writing a C program to the stage of getting it executed. when I compile the code I only get an .exe file. But I want to get all the files which are being made before the compilation (preprocess ones), an intermediate code file where all those macros with are replaced with their actual values and preprocessor are replaced with their actual header files. in general can we get all those files (preprocess one, compile one and linker one) separately?

jonesalex
  • 31
  • 5

1 Answers1

1

To access all the intermediate files use the command (Ubuntu): gcc –Wall –save-temps filename.c –o filename. This command generates all the intermediate files in current working directory.

Krishna Kanth Yenumula
  • 2,533
  • 2
  • 14
  • 26