Core Concepts in Compiler Design and Language Runtime
Classified in Computers
Written on in English with a size of 10.45 KB
Core Concepts in Compiler Design
Compiler
Compiler: Translates entire source code to target code before execution. It requires a full parse and upfront error checking, then executes the generated target code.
Interpreter
Interpreter: Executes source code incrementally (line-by-line or statement-by-statement). It translates and executes on the fly, and may partially execute ill-formed programs until an error is encountered.
LVar vs. x86 Architecture
LVar: Features nested expressions, implicit control flow (represented by an Abstract Syntax Tree - AST), and an unlimited number of logical variables.
x86: Characterized by flat instructions, atomic operands (registers/memory), explicit control flow (jumps), and a limited set of registers. Compilation passes... Continue reading "Core Concepts in Compiler Design and Language Runtime" »