如何在x86 linux上执行MIPS汇编程序? [英] How can I execute MIPS assembly programs on an x86 linux?

查看:386
本文介绍了如何在x86 linux上执行MIPS汇编程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在用于x86 linux的命令行解释器或其他任何程序集,以便运行MIPS汇编程序?

Are there any command line interpreters or any other set of programs around for x86 linux in order to run MIPS assembly programs?

我希望能够编写简单的MIPS汇编程序并从本地计算机上的控制台运行它们.

I'd like to be able to write simple MIPS assembly programs and run them from the console on my local machine.

我知道SPIM,但是它需要X Windows ,我很好奇是否有更好的选择.

I know of SPIM but it requires X Windows and I'm curious if there are better options out there.

事实证明它不需要X Windows.我仍然有关于SPIM的问题.在我的拙见中,这不是最好的. Qemu/Cross编译的工具链需要更多工作,但我的怪癖却更少.

Turns out it doesn't require X Windows. I still have issues with SPIM. Not the best in my humble opinion. Qemu / Cross compiled toolchain is a little more work but I have less quirks.

推荐答案

您将需要交叉编译工具链或构建自己的交叉binutils. 对于预构建的工具链,您可以访问代码源.如果您只想编译程序集,那么所有 您需要的是binutils. Linux Mips Wiki

You will need either a cross compilation toolchain, or to build your own cross binutils. For a prebuilt toolchain, you can visit code sourcery. If you just want to compile assembly, then all you need is binutils. There are some guidelines on the Linux Mips wiki

对于仿真部分,QEmu将是我的选择.

For the emulation part, QEmu would be my choice.

这篇关于如何在x86 linux上执行MIPS汇编程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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