"\n\t" in inline asm

Philip Blundell philb@gnu.org
Thu Dec 10 04:11:00 GMT 1998


>I use inline assembly quite often and I am a little disturbed by the
>need to append "\n\t" to the end of every inline assembly line. This

You don't.  You can write it like this:

asm (
  "movl %0,%1
   decl %2
   int $0x80"
  : /* this is just an example */
  : "=r" (0) /* whatever */
);

p.





More information about the Gcc-bugs mailing list