+ 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.
1 Answer
+ 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!!!