Currently gcc supports intel's assembly syntax. Not only output it,inline too.
Put this
Code: |
.intel_syntax noprefix
|
|
before intel's assembly,and use
.
But don't forget to switch back to ATT's assembly after:
Code: |
.att_syntax noprefix
|
|
EDIT:
To use non-inline assembly routines with gcc,it's very simple. Make you assembly generate objcode(on FASM,see "format" section from fasm's documentation) code and then compile with gcc to an executable as following:
Code: |
gcc foo.o etc.c -o exe
|
|