2

I wrote one of the most simple programs I could imagine:

int main (void)
{
int a;
}

As you can see, there are no include files. The purpose is to understand a little bit more about the converting process from C to machine code.

Thus, I ran this code through the C Preprocessor (clang -E) and got the following output:

# 1 "prog.c"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 157 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "prog.c" 2
int main (void)
{
int a;
}

What those lines before the program do?

0

Maybe you can find the answer for your question on this post on Stack Overflow.

Hope this helps!


If this helped you please give a go on the check mark! Thanks! :)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .