NASM,MASM,TASM介绍**
TASM,MASM和NASM是x86汇编程序
Borland Turbo汇编程序(TASM)和Microsoft宏汇编程序(MASM)是基于DOS / Windows的,Netwide汇编程序(NASM)也可用于其他平台(Linux)。 TASM产生16位/ 32位输出,MASM和NASM也产生64位输出。
Windows汇编程序更喜欢Intel语法(TASM,MASM),大多数Linux / UNIX汇编程序使用AT&T。
NASM是Linux的最佳汇编程序
NASM程序的结构
NASM is line-based. Most programs consist of directives followed by one or more sections. Lines can have an optional label. Most lines have an instruction followed by zero or more operands.
Generally, you put code in a section called .text
and your constant data in a section called .data
.