Expand description
Bytecode compiler - AST to bytecode translation
OPT-002: Bytecode Compiler
Translates Ruchy AST to bytecode instructions with:
- Linear scan register allocation
- Constant pool management
- Jump target resolution
- Local variable tracking
Reference: ../ruchyruchy/OPTIMIZATION_REPORT_FOR_RUCHY.md
Expected: Efficient bytecode generation with minimal overhead
Structsยง
- Bytecode
Chunk - Bytecode function chunk
- Compiler
- Bytecode compiler state