by fjfaase · 10mo ago · 0 comments
You are using the compiler to compile itself.
"TCC is its own test set." Absolutely brilliant.
Goto is easier to implement than an if statement. Postincrement behaves no differently in a switch statement than elsewhere.
Did you know that C has a keyword that is only a keyword in some places and that there is a function that can have two or three parameters?
> Did you know that C has a keyword that is only a keyword in some places and that there is a function that can have two or three parameters?
What are those? Please tell!
defined is a pre-processor 'keyword' that only is used in conditions after #if and #elif. Elsewhere it is ignored by the pre-processor. You could argue that it is not a real keyword. But lets see what happens when you define it as a define with: '#define defined 1'.
The function main can be defined with two or three parameters. The third contains the environment. You can also get the environment with 'argv + (argc + 1)'.