3

The default assembler under linux is "as". I know gdb supports disassembly using both AT&T and Intel syntax.

My question is, I know "as" supports AT&T format, does it support Intel format? E.g. I've "b.s" file

.global _start
_start:
mov ax,0

Then

as b.s
b.s: Assembler messages:
b.s:3: Error: too many memory references for `mov'

How to make "as" compile this .s file? Thanks.

Hind Forsum
  • 9,717
  • 13
  • 63
  • 119

1 Answers1

4

See this answer for some pointers of gcc/gas with Intel syntax.

I personally have used NASM for the occasional pure assembly projects (which is Intel syntax native) or Intel's icc for C programs with inlines.

Community
  • 1
  • 1
BJ Black
  • 2,483
  • 9
  • 15