+ 2

Is there a way,to see the expanded temporary code file that a preprocessor returns to the compiler?

I want to see how header guards work by trying some program. Instead of a wild guess i want to see what actually happen(which macro it compile and which one it skip) after the preprocessor complete scanning the whole program. I am currently working with Codeblocks.

12th Mar 2017, 7:54 AM
Gaurav
Gaurav - avatar
1 Antwort
+ 2
you can use command line and execute commands step wise as required Preprocessing: .c -> .i gcc Hello.c -E -o Hello.i Compiling: .i -> .s gcc Hello.i -S Assembling: .s -> .o gcc Hello.s -c Linking .o -> a.exe gcc Hello.o Loading a.exe Hello World!!!
13th Mar 2017, 4:23 PM
Samkitkumar Jain
Samkitkumar Jain - avatar