用于学生项目的小型汇编翻译器
我正在为学生项目寻找小型汇编翻译器。问题在于,有必要将一小部分汇编器 (AT&T) 语法即时转换为机器代码(x86 和/或 x86_64)。我不想重新发明轮子,所以我将不胜感激任何指向现成实现的链接。优先考虑具有简单界面的轻量级库。
I am looking for small assembler translator for a student project. The problem is so that it is necessary to translate small portions of assembler (AT&T) syntax into machine code (x86 and/or x86_64) on the fly. I don't want to reinvent the wheel so I will be grateful for any links to ready implementations. Preference will be given to lightweight library with simple interface.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
给 FASM 看一下,尽管它是 x86 和 x86_64 的完整汇编器,它是开源的,应该可以轻松地让您要集成它,您还可以查看 GAS,它也是开源的。
找到一个实际的汇编器库会非常困难,因为大多数都是针对 JIT 编译器的,你会发现最好的就是 asmjit。
Give FASM a look, although its a full assembler for x86 and x86_64, its opensource, which should easily allow you to integrate it, you can also have a look at GAS, which is also open source.
Finding an actual assembler library is gonna very difficult, as most are geared to JIT compilers, the best you'll find is asmjit.