What does %c mean in GCC inline assembly code?

前端 未结 2 349
太阳男子
太阳男子 2021-01-12 07:35

I am trying to understand this inline assembly code which comes from _hypercall0 here.

asm volatile (\"call hypercall_page+%c[offset]\" \\
              


        
2条回答
  •  迷失自我
    2021-01-12 08:18

    From the GCC internals documentation:

    `%cdigit' can be used to substitute an operand that is a constant value without the syntax that normally indicates an immediate operand.

提交回复
热议问题