This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "\n\t" in inline asm
- To: Martynas Kunigelis <mkunigelis at alna dot lt>
- Subject: Re: "\n\t" in inline asm
- From: Philip Blundell <philb at gnu dot org>
- Date: Thu, 10 Dec 1998 12:08:48 +0100
- cc: egcs at cygnus dot com
>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.