This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "\n\t" in inline asm


>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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]