Multiple names for gcc inline assembly constraints?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As per the GCC manual:

 As of GCC version 3.1, one may write `[NAME]' instead of the operand
number for a matching constraint.  For example:

     asm ("cmoveq %1,%2,%[result]"
          : [result] "=r"(result)
          : "r" (test), "r"(new), "[result]"(old));

Is
it possible to define multiple [NAME]s for the same constraint?  This
would be useful for documentation purposes in the code so that a particular
register re-used for multiple purposes inside a single assembly block
could have a different symbolic name for each purpose it is used for.

Thanks,

  Eric





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux