1

I see word NASM, MASM, Intel, AT&T. I am confused between them. Is it different types of assembly?

1

You are confusing several things.

nasm, masm and gas (GNU Assembler) are tools that compile an x86 assembly text file into an executable. Each of them do have a specific syntax to specify your program. But, they share a lot on assembly instructions.

Then, Intel et AT&T are specific syntax to write x86 assembly programs. In fact, nasm and masm use the Intel syntax, where gas is using the AT&T syntax.

| improve this answer | |
  • gas has support for both, Intel syntax requires that you use the .intel_syntax directive. However, you'd be better off using a different assembler if you want to use Intel syntax. – Chase Nov 15 '19 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.