eosp
User
 Junior Osdever
| Posts: 6 |   | Karma: 0
|
Re: intel inline assembly with gcc - 2005/06/28 08:28
I'm not sure, but I think both formats work with gcc.
asm { ... } for a long code block (like an entire function), and asm("..." : : : ) for a single line, although you can put more than one line.
btw, gcc is incompatible unless you write it yourself, of course with intel syntax. use at&t.
EDIT: never mind that, I was mixing up my compilers. The only valid GCC syntax is:
asm("..." : : : ); and at&t assembler. [ Edited Wed Jun 29 2005, 12:25AM ]
|