I started studying C recently, using gcc as compiler, but I found out that it uses AT&T syntax for inline ASM, which is simply horrible!
So I would like to write my ASM functions in a file and then call them from another C file, anyone knows how to do that?
I think I read something about this in the forum but I cannot find it anymore...
Currently gcc supports intel's assembly syntax. Not only output it,inline too.
before intel's assembly,and use
But don't forget to switch back to ATT's assembly after:
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:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum