~demindiro/dynasm_experiments

Some experiments with JIT compilation & interpreters
Add JIT with more optimization
Initial working JIT & interpreter

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~demindiro/dynasm_experiments
read/write
git@git.sr.ht:~demindiro/dynasm_experiments

You can also use your local clone with git send-email.

#JIT compiler & interpreter for ´

This program is a quick experiment to (naïvely) test the performance difference between interpreters and JIT compilers for simple programs.

#´

´ is a derivative of `. It is modified such that finite loops are possible.

Instructions still use backticks since forward ticks are not ASCII and hence annoying.

#Instructions

A and B are integer constants, [X] denotes an address dereference, V is the last assigned value, P is the instruction pointer.

Syntax Function
A`+B [A] += B, V = [A]
A`B [A] += [B], V = [A]
+A`+B [A] == V ? P += B
+A`B [A] == V ? P += [B]
other ignored