TempleOS - Mini JIT Compiler (-TGLCCLPwDI)
TempleOS - Mini JIT Compiler (00:17:23)
September 11, 2014
Demonstrates a mini just-in-time expression compiler in TempleOS, walking through tokenization, operator precedence, and emission of executable x86-64 machine code. Explains how parsed terms are converted into stack-based instructions, unassembled for inspection, and executed from allocated memory to return results. Discusses parser strategy, symbol-table lookup, and relative CALL encoding to show how dynamic code generation and function calls work.
Copyright © 2023 - 2026 Serhii Zasenko. All rights reserved