Re: GCC-Error: "More than 10 operands in asm"

From: Brian Gerst (
Date: Wed May 03 2000 - 12:17:16 EST

Frank Mehnert wrote:
> Hi,
> sorry for asking this question in the Linux-Kernel Mailing list,
> but it seems that I can get the best solution for my problem here
> ( ignores my question).
> A code fragment of a project looks like this:

   asm volatile ("...."
                : "=a" (outEAX),
                  "=b" (outEBX),
                  "=c" (outECX),
                  "=d" (outEDX),
                  "=S" (outESI),
                  "=D" (outEDI)
                : "0" (inEAX),
                  "1" (inEBX),
                  "2" (inECX),
                  "3" (inEDX),
                  "4" (inESI),
                  "5" (inEDI)
                : "memory");

If you use the same register for input and output, then use a number in
the input section which corresponds to the position in the output


Brian Gerst

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:12 EST