source.c --(preprocessing)--> temp_source.c --(compiling)--> source.elf --(linking)--> source.exe
How to view temp_source.c ?
(I just assume that this file name temp_source.c)
Edit: I'm using Diab compiler.
source.c --(preprocessing)--> temp_source.c --(compiling)--> source.elf --(linking)--> source.exe
How to view temp_source.c ?
(I just assume that this file name temp_source.c)
Edit: I'm using Diab compiler.
Command line interface to Microsoft Visual C++ can be used to output the preprocessed file as :
/E: preprocess to stdout (similar to GCC's -E option)
/P: preprocess to file
/EP: preprocess to stdout without #line directives
On Windows
Compiler will create a intermediate file with default extension (.i)
cl /P source.c
Compiler will redirect to stdout
cl /E source.c
cl /E source.c > source.txt
On Linux
$gcc -E source.c > source.txt