本文介绍了编写一个新的JIT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感兴趣的是用C开始自己的JIT项目++。我不是组装,或编译器设计等等等等,那陌生但是,我非常不熟悉所产生的机床code格式 - 样,是什么MOV指令实际上看起来当一切都说过和做过类似,它的时间调用该函数指针。那么,什么是最好的资源用于创建这样的事?

I'm interested in starting my own JIT project in C++. I'm not that unfamiliar with assembly, or compiler design etc etc. But, I am very unfamiliar with the resulting machine code format - like, what does a mov instruction actually look like when all is said and done and it's time to call that function pointer. So, what are the best resources for creating such a thing?

编辑:现在,我只对x86的Windows上兴趣,绵延一点点在未来的64位的Windows

Right now, I'm only interested in x86 on Windows, stretching a tiny bit to 64bit Windows in the future.

推荐答案

您想看看你感兴趣的架构处理器手册,这些手册介绍运算code编码。对于x86处理器,手册可从下载。

You want to have a look at the processor manuals for the architecture you are interested in. Those manuals describe the opcode encoding. For x86 processors, the manuals can be downloaded from this page.

这篇关于编写一个新的JIT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 13:25