Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASM: MASM, NASM, FASM?

I have done ARM assembly programming and I would like to learn the Intel Assembler. I keep hearing all these different F/M/N/ASMs mentioned- but I am unsure how they related to what I wish to achieve?

Could somebody please help me identify what I would need to learn how to program low level on the Intel architecture? I dont quite understand how the "different Assemblers" correlate, even more so with x86, IA64, AMD64/x86-64 etc?

If it is of any help, I am most comfortable with Eclipse and Visual Studio 08/10 IDEs.

like image 762
user997112 Avatar asked Apr 16 '12 18:04

user997112


People also ask

What is difference between ASM and NASM?

asm file referrers to an assembly source file. It can be for any assembler or platform. A *. nasm file is also an assembly source file but it's for the NASM assembler.

What is the difference between TASM MASM and NASM?

TASM, MASM, and NASM are x86 assemblers. Borland Turbo Assembler (TASM) and Microsoft Macro Assembler (MASM) are DOS/Windows-based, Netwide Assembler (NASM) is available for other platforms as well. TASM produces 16-bit/32-bit output, MASM and NASM also produce 64-bit output.

What is NASM x86?

The Netwide Assembler (NASM) is an assembler and disassembler for the Intel x86 architecture. It can be used to write 16-bit, 32-bit (IA-32) and 64-bit (x86-64) programs. It is considered one of the most popular assemblers for Linux.


1 Answers

MASM (Microsoft Assembler) is the popular assembler for Windows. MASM is for 16-bit and 32-bit applications(x86). ML64 is the one for 64 bit sources (AMD64/x86-64)

NASM (Netwide Assembler) is the popular assembler for Linux but is available on Windows too. NASM supports 16-bit, 32 bit and 64 bit programs.

FASM (Flat Assembler) is available for both Windows and Linux. FASM too supports both 32-bit and 64-bit programs.

So I guess you would prefer choosing MASM according to your requirements.

like image 168
Pavan Manjunath Avatar answered Sep 22 '22 13:09

Pavan Manjunath