什么是%C,在海湾合作委员会内联汇编code是什么意思? [英] What does %c mean in GCC inline assembly code?

查看:184
本文介绍了什么是%C,在海湾合作委员会内联汇编code是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图理解这种内联汇编code这是从 _hypercall0 here.

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

asm volatile ("call hypercall_page+%c[offset]" \
        : "=r" (__res) \
        : [offset] "i" (__HYPERVISOR_##name * sizeof(hypercall_page[0])) \
        : "memory", "edi", "esi", "edx", "ecx", "ebx", "eax")

我有在第一线是什么%C 无法找到信息的装置。我没有找到在 GCC手册最明显的部分的任何信息,这也说明%[名] ,而不是%C [名] 。是否有任何其他地方我应该看看?

I am having trouble finding information on what %c in the first line means. I did not find any information in the most obvious section of the GCC manual, which explains %[name], but not %c[name]. Is there any other place I should look at?

推荐答案

从的 GCC内部文档

`%C的数字的'可以用来替换一个
  操作数是恒定值
  没有语法,通常
  表示立即数。

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

这篇关于什么是%C,在海湾合作委员会内联汇编code是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆