[ASM] Welchen Assembler sollte man verwenden?

BORG316

Ensign
Registriert
Mai 2003
Beiträge
235
Ich beschäftige mich gerade ein bisschen mit Assembler und verwende momentan Linux mit NASM.
Ich bin mir aber nicht sicher ob NASM der richtige ist...

Welcher Assembler ist der am meisten verwendete? NASM? MASM? FASM? usw...

Thx
 
Die Doku ist zwar schon etwas älter die Binary "as" ist aber auch unter CentOS Linux 6.4 zu finden.
http://www.centos.org/docs/3/html/rhel-devtools-en-3/s1-as-gnu.html

2.6. as, the GNU Assembler

as, the GNU assembler, translates text-based assembly language source files into binary-based object files. Normally it operates without you being aware of it, as the compiler driver program (gcc) invokes it automatically. However, if you are creating your own assembler source files, you must invoke as directly.

If, while using gcc, you want to pass special command-line options to the assembler to control its behavior, you need to use the `-Wa,<text>' command-line option. This option passes <text> directly to the assembler's command line. For example:
Code:
# gcc -c -g -O -Wa,-alh,-L file.c
passes the -alh command line option on to the assembler. (This causes the assembler to emit a listing file that shows the assembler source generated by the compiler for each line of the C source file file.c).

For more information, refer to Using as, the Gnu Assembler.
 
nasm oder gas würde ich sagen. Seit wann gibts MASM für Linux?
 
Mit NASM/YASM habe ich eigentlich gute Erfahrungen auf Linux und x86-Plattformen gemacht. Die Dokumentation ist ganz gut und einige Beispiele lassen sich auch finden. Viele Bücher verwenden allerdings etwas anderes (z.B. HLA).
GAS wird interessant, wenn du irgendwann noch andere Plattformen anvisierst.
Wahrscheinlich fast jeder Assembler so gut wie der andere, wenn das Prinzip verstanden wurde :)
 
Zuletzt bearbeitet:
Zurück
Oben