NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on March 20, 2005, 03:18:26 AM

Title: Is Nasm better than GCC AS command
Post by: nobody on March 20, 2005, 03:18:26 AM
Hi Guys,

I am very new to asm, and are wondering which i should be using. Is there any right or wrong. Is nasm more popular than gcc for Assmebly. Is the syntax easier to learn. Any help would be appreciated.

Thank you
Elvester
Title: Re: Is Nasm better than GCC AS command
Post by: nobody on March 20, 2005, 03:50:13 AM
Ok. A little research later.

I have found that there are 2 types of syntax in asm.

Intel and AT&T. Which should i be learning?.

I need a friend :(

Elveish
Title: Re: Is Nasm better than GCC AS command
Post by: nasm64developer on March 20, 2005, 04:36:26 AM
> Intel and AT&T. Which should i be learning?

Why both of course. That way you will be most
flexible. And no, it's really not that hard.
Title: Re: Is Nasm better than GCC AS command
Post by: Frank Kotler on March 22, 2005, 11:26:14 AM
There's no real "right or wrong"... Around here, we tend to like Nasm :) But you could use (G)as with the ".intel_syntax noprefix" directive, and write Intel syntax for Gas, if you wanted to. Fasm, Yasm, and HLA run on Linux, too (with ".intel_syntax" available for Gas, HLA is the one with the "weird syntax" :) I don't think you'd go wrong by using Nasm, but there are lots of choices!

Best,
Frank