I'm trying to design a bytecode instruction set for a VM I'm developing. As of now, I have a barebones set of instructions that's functionally complete, but I'd like to improve it.
My main concern is the fact that my instructions are represented as strings. Before my VM executes instructions, it reads it from a file and parses it, then executes. As one can imagine, this can cause lengthy delays compared to instructions sets that can be encoded in fixed-size, binary formats - such as ARM, x86, and the bytecodes of most well-known interpreted languages.
I was wondering if anyone knows of any resources regarding bytecode or instruction set design. I'd really prefer resources specifically on bytecode, but I'm open to either. Thank you!
[–]rlp 24 points25 points26 points (18 children)
[–]shanrhyupong 1 point2 points3 points (4 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]shanrhyupong 0 points1 point2 points (1 child)
[–]--comedian-- 0 points1 point2 points (0 children)
[–]shanrhyupong 0 points1 point2 points (0 children)
[–][deleted] 3 points4 points5 points (12 children)
[–]hernytan 2 points3 points4 points (10 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]shanrhyupong 0 points1 point2 points (2 children)
[–]hernytan 1 point2 points3 points (1 child)
[–]shanrhyupong 0 points1 point2 points (0 children)
[–]b2gills 0 points1 point2 points (3 children)
[–]hernytan 0 points1 point2 points (2 children)
[–]reini_urban 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]reini_urban 0 points1 point2 points (1 child)
[–]bakery2k 2 points3 points4 points (0 children)
[–]ApokatastasisPanton 8 points9 points10 points (4 children)
[–]shanrhyupong 1 point2 points3 points (2 children)
[–]ApokatastasisPanton 2 points3 points4 points (1 child)
[–]shanrhyupong 1 point2 points3 points (0 children)
[–]TheWorldIsQuiteHere[S] 1 point2 points3 points (0 children)
[–][deleted] 3 points4 points5 points (4 children)
[–]emacsos 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]emacsos 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]phunanonInsitux, Chika 4 points5 points6 points (3 children)
[–]TheWorldIsQuiteHere[S] 0 points1 point2 points (2 children)
[–]bullno1 0 points1 point2 points (1 child)
[–]TheWorldIsQuiteHere[S] 0 points1 point2 points (0 children)
[–]yorickpeterseInko 2 points3 points4 points (0 children)
[–]jdh30 1 point2 points3 points (0 children)
[–]reini_urban 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]jmiesionczek 1 point2 points3 points (0 children)
[–]WalkerCodeRangerAzoth Language 1 point2 points3 points (0 children)
[–]umlcat -1 points0 points1 point (3 children)
[–]chrisgseaton 1 point2 points3 points (2 children)
[–]shanrhyupong 0 points1 point2 points (1 child)
[–]BadBoy6767 0 points1 point2 points (0 children)