编译/运行在Linux汇编? [英] Compile/run assembler in linux?
问题描述
我是相当新的Linux(Ubuntu的10.04)和总新手汇编。我在下面的一些教程,我找不到具体到Linux东西。
所以,我的问题是,什么是一个很好的软件包编译/运行汇编器和命令行命令来编译/运行该程序包是什么?
I'm fairly new to linux(ubuntu 10.04) and a total novice to assembler. I was following some tutorials and I couldn't find anything specific to linux. So, my question is, what is a good package to compile/run assembler and what are the command line commands to compile/run for that package?
推荐答案
GNU汇编(气体)和NASM都是很好的选择。然而,他们有一定的差异,最大的一个是你把操作和操作数的顺序。
The GNU assembler (gas) and NASM are both good choices. However, they have some differences, the big one being the order you put operations and their operands.
天然气使用AT& T公司语法:
gas uses AT&T syntax:
mnemonic source, destination
NASM采用了英特尔的风格:
nasm uses intel style:
mnemonic destination, source
任一个可能会做你所需要的。
Either one will probably do what you need.
试用本教程:<一href=\"http://asm.sourceforge.net/intro/Assembly-Intro.html\">http://asm.sourceforge.net/intro/Assembly-Intro.html
这篇关于编译/运行在Linux汇编?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!