问题
I would like to learn how to write a small emulator/virtual machine. Does anyone know a good tutorial or a simpler project than qemu/virtualbox?
Thx
回答1:
Check out my tutorial on how to write your own virtual machine from scratch at http://www.icemanind.com
Its a complete tutorial that will walk you through building a virtual machine and assembler in C#.
回答2:
Anthony Green did a blog series on coming up with an instruction set, porting binutils, gcc, newlib and so on, as well as setting up sim, and qemu to emulate a machine with this new instruction set. The posts (and patches) are all linked from http://atgreen.github.io/ggx/. There are a handful of posts that aren't linked from there about various tangential issues.
来源:https://stackoverflow.com/questions/2598675/how-to-write-a-virtual-machine