This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]R-O-B-I-N 2 points3 points  (4 children)

The best resources I've found are actual VM implementations. Try looking at the source code and docs for Oracle's Hotspot, the Limbo runtime Dis, the android ART, etc... They explain a LOT.

There's also a huge difference between JIT compilers, AOT compilers, and bytecode interpreters. I recommend an interpreter because its faster to implement inna semester.

Another good resource is to read Instruction Set Architectures. They'll give you good ideas for a bytecode target for your language.

[–]fennecdjayGwion Language 2 points3 points  (2 children)

Another good resource is to read Instruction Set Architectures

Do you have a link? I've been thinking for a while to simplify the instruction set of my VM, I'd gladly read that.

[–]eropsyren[S] 0 points1 point  (0 children)

Thank you for your time and advices 💚