|
|
|
|
|
by rdc12
4053 days ago
|
|
This paper [1] (thou it is a tad old now) shows that the register machine approach does still outperform the stack machine by a fair margin. Largely from the reduction of needed instructions. Wonder which is a better source represntation for a JIT thou. [1] https://www.usenix.org/legacy/events/vee05/full_papers/p153-... |
|
I (half) wrote a toy trace compiler based on a register bytecode a while back. Writing the front end was quite pleasant - the difficult parts were back end stuff like figuring out how to support trace exit information. (The difficulty there is that you might want to perform stores, materialize objects etc as you go off trace as part of store and allocation sinking.)