BB
obop
Compiler Explorer
index
tools
Compile
|
Example:
Simple math
Variables
If/Else
While loop
Functions
Fibonacci
Factorial
Nested control flow
|
Language: Tiny-C (int, if/else, while, return, functions)
int main() { int x = 10; int y = 20; return x + y; }
1. Lexer (Tokens)
2. Parser (AST)
3. IR (Three-Address Code)
4. Code Gen (x86-like)