Re: Best X86 assembler for Unix?



Frank Kotler <spamtrap@xxxxxxxxxx> wrote:
dave wrote:
I am a very experienced, but rusty x86 assembly programmer
with a new AM2 Athlon64 chip that I want to code for in 64-bit
mode. Is there an alternative assembler to (G)AS for Athlon 64
that anyone can recommend? (I checked out nasm, but the one I
downloaded had no reg defs for AMD's new registers. I'm running
64-bit OpenBSD).

Fasm:

http://flatassembler.net/download.php

Or Yasm:

http://www.tortall.net/projects/yasm

Note that (G)as has got an ".intel_syntax" option that you also might like.

Best,
Frank

Yasm is now built and running as a 64-bit program on OpenBSD 3.9.
I have linked a test yasm program with a C test program.
The program aborts with a segfault when the first assembly instruction
is executed. Gcc disassembles the code ok, so I think the problem is
incorrect section attributes (currently just .text) for the yasm
assembly code. Anyone know what I'm still missing?

Thanks,
Dave Feustel

.



Relevant Pages

  • Re: Alternatives to gcc (was Re: gcc 4.3: when will it become standardcompiler?)
    ... For assembler, Yasm looks like a possibility, but I have only glanced at it. ... For an archiver, what about tar? ...
    (freebsd-current)
  • Re: Free assembler for x86-64bit processors
    ... NASM-64 is a possibility, where other people in this group can likely ... I think also YASM has x86-64 support. ... possibly interesting if one wants an assembler mostly intended for JIT, ...
    (alt.lang.asm)
  • Re: FASMLIB 0.5.0 is out
    ... Any feedback welcomed. ... MASM (Microsoft Macro Assembler) ... YASM (NASM clone with BSD license) ...
    (alt.lang.asm)
  • Re: Static Libraries and Assembly Language
    ... The "static libraries" is one of methods to fabricate that. ... syntax, you can choose to translate it to syntax of your assembler, ... Usage of a DLL is good thing as long as this DLL is common and is used widely. ... The point was about utilizing of assembly code among different assembly ...
    (alt.lang.asm)
  • Re: Bare-Metal Programming
    ... on one of these punch cards and loading into memory where it could be ... The first assembler was met with outrage. ... that I could program not only in assembler but in machine language. ...
    (comp.programming)