Rafe Kettler Rafe Kettler - 2 years ago 115
Linux Question

Compile/run assembler in 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?

Answer Source

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.

gas uses AT&T syntax:

mnemonic    source, destination

nasm uses intel style:

mnemonic    destination, source

Either one will probably do what you need.

Try out this tutorial: http://asm.sourceforge.net/intro/Assembly-Intro.html

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download