Author Topic: Is Nasm better than GCC AS command  (Read 2951 times)

nobody

  • Guest
Is Nasm better than GCC AS command
« 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

nobody

  • Guest
Re: Is Nasm better than GCC AS command
« Reply #1 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

nasm64developer

  • Guest
Re: Is Nasm better than GCC AS command
« Reply #2 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.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2379
  • Country: us
Re: Is Nasm better than GCC AS command
« Reply #3 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