3 ms·
I love taking the address of labels. Back in highschool I wrote a couple of articles on using them to create JIT compilers: http://maplant.com/jit_bf.html http
by webkike 9y ago
I love taking the address of labels. Back in highschool I wrote a couple of articles on using them to create JIT compilers:
http://maplant.com/jit_bf.html http://maplant.com/jit_bf.html
http://dginasa.blogspot.com/2012/05/jit-compilation-without-much-assembler.html?m=1 http://dginasa.blogspot.com/2012/05/jit-compilation-without-...
- jessaustin 9y agoThat shorter URL is 404ing.
- webkike 9y agoOops, looks like I forgot to migrate it from my old blogspot
- coliveira 9y agoThis is similar to the technique used to implement gforth. The interpreter is all contained in one function, and the instructions are accessed using local labels and goto.
- loeg 9y agoI believe CPython does something similar.
- cryptonector 9y agoAnd local functions. And __cleanup. And statement-expressions. And Blocks is nice too. All of this should be standardized.