写一个新的jit [英] Writing a new jit

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

问题描述

我有兴趣在C ++中启动我自己的JIT项目。我不是不熟悉程序集或编译器设计等等。但是,我非常不熟悉的结果机器代码格式 - 像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?

编辑:现在,我只对Windows上的x86感兴趣,伸展一点点到64位Windows

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

推荐答案

您想查看您感兴趣的架构的处理器手册。这些手册描述操作码编码。对于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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆