I haven't written a lot of code but have written some source codes and I am still confused as how the compiler translates the source code into executable file
Currently I am reading the following web page to understand the compilation process
https://www.javatpoint.com/compilation-process-in-c
I use an editor to create or edit C source programs. and I save program file with c extension (for example: main.c, temp.c, etc.)
Preprocessor stage
I think first a preprocessor will process the files and replace all the #include and #define (and other preprocessor commands) with their value.
I think preprocessor process doesn't occupy memory it only substitutes the value for the name.
Currently I am reading the following web page to understand the compilation process
https://www.javatpoint.com/compilation-process-in-c
I use an editor to create or edit C source programs. and I save program file with c extension (for example: main.c, temp.c, etc.)
Preprocessor stage
I think first a preprocessor will process the files and replace all the #include and #define (and other preprocessor commands) with their value.
I think preprocessor process doesn't occupy memory it only substitutes the value for the name.