https://github.com/demindiro/dynasm_experiments
Some experiments with JIT compilation & interpreters
https://github.com/demindiro/dynasm_experiments
Last synced: over 1 year ago
JSON representation
Some experiments with JIT compilation & interpreters
- Host: GitHub
- URL: https://github.com/demindiro/dynasm_experiments
- Owner: Demindiro
- Created: 2022-01-26T23:02:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T13:19:50.000Z (over 4 years ago)
- Last Synced: 2025-02-07T06:26:57.260Z (over 1 year ago)
- Language: Rust
- Homepage: https://git.sr.ht/~demindiro/dynasm_experiments
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 |
[\`]: https://esolangs.org/wiki/%60