Wednesday, October 1, 2008

Question # 3

Question: Research in the net what is the best assembler and why?

(NASM) is 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. NASM is considered to be one of the most popular assemblers for Linux and is the second most popular assembler overall.NASM was originally written by Simon Tatham with assistance from Julian Hall, and is currently maintained by a small team led by H. Peter Anvin. It was originally copyrighted but it is now available as free software under the terms of the GNU Lesser General Public License. NASM can output several binary formats including COFF, Portable Executable, a.out, ELF and Mach-O, though Position-independent code is only supported for ELF object files. NASM also has its own binary format called RDOFF. 32-bit programs can be written using NASM in such a way that they are portable to all 32-bit x86 operating systems, if the right libraries are used. The variety of output formats allows one to retarget programs to virtually any x86 operating system. In addition, NASM can create flat binary files, usable in writing boot loaders, ROM images, and various facets of OS development.NASM can run on non-x86 platforms, such as SPARC and PowerPC, though it cannot output programs usable by those machines. NASM uses Intel assembly syntax instead of AT&T syntax. It also avoids features such as automatic generation of segment overrides (and the related ASSUME directive) used by MASM and compatible assemblers.

References


Ram Narayan. "Linux assemblers: A comparison of GAS and NASM". "two of the most popular assemblers for Linux®, GNU Assembler (GAS) and Netwide Assembler (NASM)" Randall Hyde. "Which Assembler is the Best?". Retrieved on 2008-05-18. "In second place, undoubtedly, is the NASM assembler." a b "The Netwide Assembler". Retrieved on 2008-06-27. a b Randall Hyde. "NASM: The Netwide Assembler". Retrieved on 2008-06-27. a b c d "NASM Manual". Retrieved on 2008-06-27.

No comments: