I'm running a prova.c file on my terminal.
I ran GCC with the command line:
gcc -Wall -std=c99 -E prova.c
prova.c:
int main(int argc, char* argv[]) {
int a=1;
int b=2;
return a+b;
}
stdout:
# 1 "prova.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "prova.c"
int main(int argc, char* argv[]) {
int a=1;
int b=2;
return a+b;
}
What does every line with the hash in the beginning mean?
Why do we need them to get generated?
If you have time I would like to have an explanation for every single line more than the general answer. I know some of them are line markers.
If you know resources on the topic sharing them would be awesome.