Thread: Which assembler is best?

  1. #1
    Registered User MathFan's Avatar
    Join Date
    Apr 2002
    Posts
    190

    Which assembler is best?

    Hi,

    I've been thinking about learning some assembly for a long time now, but hadn't really had time to do so. Now my school year is over and I'm free (yepee! ).

    When I recently tried to look for some tutorials in asm, I found out that every assembler uses more or less its own notation.

    My question is, which one of the assemblers is the best one to start with? I'm a hardcore linux user, and have always used GNU compilers. Is it better then to learn GNU assembler, since it may be is easier to embed asm code into my apps?..

    Thanx for any replies...
    The OS requirements were Windows Vista Ultimate or better, so we used Linux.

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    TASM R0X0RZ 1N UR B0X0RZ!!!1!!

    Erm, well if you're just starting out, you may find it easier to learn using the assembler most tutorials around are made in, which more often than not is the Netwide Assember (NASM).

    You could of course just go with your suggestion (the GNU one), I think they may be quite similar. Doesn't really matter which one you use if you're gonna link to high level code, though. Both can do it.

  3. #3
    Registered User MathFan's Avatar
    Join Date
    Apr 2002
    Posts
    190
    using the assembler most tutorials around are made in
    Yeah, well, that was one of my primary concerns, too. I didn't seem to find many tutorials on GNU Assembler.... But, I probably didn't search too well either.

    Doesn't really matter which one you use if you're gonna link to high level code, though
    What about inline asm? Then it matters, or does it?
    The OS requirements were Windows Vista Ultimate or better, so we used Linux.

  4. #4
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    Inline asm blocks are for the little things that make life great. You know, the right colour birds tweeting, the right breeze across your face...

    Scratch that. I mean that it's for doing small things that the compiler either can't do or can't do well. It doesn't involve "proper" assembly language coding per sé, it's just doing some bits and bobs in a "predefined program environment", if you like.

    Long story short, people generally learn full assembly first, then they can make decisions on to how best use it inline.

    If you forsee a future of inline use rather than actual program development though, pick the one that your compiler uses.

  5. #5
    Registered User MathFan's Avatar
    Join Date
    Apr 2002
    Posts
    190
    OK, thank you all for the advise I think I'll go for the GNU Assembler then, since I think I'm going to use inline asm in the future....
    The OS requirements were Windows Vista Ultimate or better, so we used Linux.

  6. #6
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    NASM. Nuff said.

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Main difference is that GNU as requires you to postfix every instruction with the operand length, and the arguments are in the reverse order (source first, target last).
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Assembler in GCC
    By Magos in forum Linux Programming
    Replies: 4
    Last Post: 11-05-2002, 04:22 PM
  3. assembler and linker stuff...question
    By dirkduck in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 12-17-2001, 12:10 AM
  4. MAINFRAME Assembler.
    By sean in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-05-2001, 05:32 PM
  5. interfacing assembler with c++
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 10-24-2001, 12:13 AM