Whats the best way to learn about VM implementation besides actually hacking code?

痞子三分冷 提交于 2019-12-31 12:08:31

问题


I'd like to learn more about VM implementation and optimization. Right now I'm contributing (in a small way) with JRuby and am also playing/writing with my own lisp-like language implementation that runs in a VM.

However I'd like to get more information on working with VM's and designing them. Is there a good resource for this type of information besides reading/working with existing code? I'm not opposed to do that, I just wondered if there were other sources I could be looking into.


回答1:


also check The Implementation of Lua 5.0. it's widely regarded as the fastest VM in its class and also one of the cleanest and smallest implementations.




回答2:


Read the work of Anton Ertl. Also David Gregg. Also you might want to read the Smalltalk blue book which has three chapters on the VM. The Smalltalk Green Book is also interesting and is free online.

Less technical but still interesting, if you have access to the ACM Digital Library, is the grand-daddy of all portable VMs, UCSD Pascal.

Fninally, I second the recommendation of The Implementation of Lua 5.0. This is superb work.




回答3:


Have a look at LLVM and Parrot.



来源:https://stackoverflow.com/questions/712219/whats-the-best-way-to-learn-about-vm-implementation-besides-actually-hacking-cod

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!