运行x86程序_on_ llvm [英] running x86 program _on_ llvm

查看:86
本文介绍了运行x86程序_on_ llvm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用llvm运行x86程序? IE.我想使用llvm作为x86模拟器来运行x86程序,然后检测x86程序.

谢谢!

解决方案

我认为您正在寻找 LibCPU . /p>

它具有一个x86前端(嗯,目前实际上只有8086,并且甚至还不完整,但他们正在努力),并且由于它是基于LLVM构建的,因此它显然也具有x86后端,因此可以在x86-on-x86上运行,但可以通过LLVM的优化进行传递,仪器和分析阶段.

Is it possible to use llvm to run x86 programs? I.e. I want to use llvm as an x86 simulator to run x86 programs and then instrument the x86 program.

Thanks!

解决方案

I think you are looking for LibCPU.

It has an x86 frontend (well, actually only 8086 at the moment, and that is not even complete, but they're working on it), and since it is built on top of LLVM, it obviously also has an x86 backend, thus making it possible to run x86-on-x86 but passing it through LLVM's optimization, instrumentation and analysis stages.

这篇关于运行x86程序_on_ llvm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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