如何在Linux上安装和使用GAS(GNU编译器)?

我正在使用Ubuntu,我正在寻找一个Linux的汇编编译器,我打开GAS。 我试图安装并运行它,但我不能。 有人能帮我吗? 像一个教程如何做到这一点? 谢谢。

as GNU汇编程序一样 。 它在binutils找到,但是如果你这样做:

sudo apt-get install build-essential

你会得到与gcc gas (默认使用gas在后端装配)。

有关使用gas的“教程”,您可能需要阅读使用它的“从头开始编程” 。

这是在binutils包。

启动Synaptic并在快速搜索栏中输入“gnu汇编程序”。 很明显, binutils是必需的软件包。

你可能会发现它已经安装。 我的binutils 2.20.1-3ubuntu7已经安装,我有一个相当的香草设置。

从终端窗口输入as --version会让你知道:

 GNU assembler (GNU Binutils for Ubuntu) 2.20.1-system.20100303 Copyright 2009 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `i486-linux-gnu'. 

你有没有阅读http://www.faqs.org/docs/Linux-HOWTO/Assembly-HOWTO.html ? Debian GAS包含在软件包中

的binutils

所以

 sudo apt-get install binutils dpkg -L binutils 

$男人为