Implementing a Virtual Machine in C
blog.felixangell.com
Implementing a Virtual Machine in C
1–10 of 54 posts
Re: Implementing a Virtual Machine in C
#2Re: Implementing a Virtual Machine in C
#3I'm a bit disappointed - this VM doesn't have instructions for looping or branching, nor does it really use the registers in any way. I was hoping to read a writeup that introduced some concepts that were used in real (non-toy) systems.
Re: Implementing a Virtual Machine in C
#4I'm a bit disappointed - this VM doesn't have instructions for looping or branching, nor does it really use the registers in any way. I was hoping to read a writeup that introduced some concepts that were used in real (non-toy) systems.
Re: Implementing a Virtual Machine in C
#5I'm a bit disappointed - this VM doesn't have instructions for looping or branching, nor does it really use the registers in any way. I was hoping to read a writeup that introduced some concepts that were used in real (non-toy) systems.
My VM was very simple, and I've not touched it for a while, but the whole thought of how to handle branching was what made it more interesting than other similar toy systems.
Re: Implementing a Virtual Machine in C
#6I'm a bit disappointed - this VM doesn't have instructions for looping or branching, nor does it really use the registers in any way. I was hoping to read a writeup that introduced some concepts that were used in real (non-toy) systems.
Re: Implementing a Virtual Machine in C
#7I'm a bit disappointed - this VM doesn't have instructions for looping or branching, nor does it really use the registers in any way. I was hoping to read a writeup that introduced some concepts that were used in real (non-toy) systems.
Re: Implementing a Virtual Machine in C
#8I'm a bit disappointed - this VM doesn't have instructions for looping or branching, nor does it really use the registers in any way. I was hoping to read a writeup that introduced some concepts that were used in real (non-toy) systems.
Re: Implementing a Virtual Machine in C
#9Re: Implementing a Virtual Machine in C
#10I'd like to see such an article on a register based VM. Pawn and Lua are nice examples. Most VMs are stack based but this is mainly because they are conceptually easier to understand. Register based machines have some real advantages, like requiring far fewer instructions inside tight loops.
For [1], search page for "vdbe" (virtual database engine). Hopefully you find interesting things.