What happens in the background when we enter tcc main.c -o out
? - To find out, we need to explore the stages that a compiler goes trough.
takes in code, parses it, includes files, parses them, includes files, expands macros, ... Can also happen after (or during) main lexing (which is waaay smarter)
Tokenizes your code
example: printf("Hello, %s\n", getName());
-> printf
(
"Hello, %s\n"
,
getName
, (
)
)
;