dolphin
驱动中牛
驱动中牛
  • 注册日期2001-04-30
  • 最后登录2013-03-08
  • 粉丝0
  • 关注0
  • 积分14分
  • 威望23点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
阅读:1705回复:4

奇怪的宏定义……

楼主#
更多 发布于:2001-06-15 09:45
 /include/asm/system.h中的宏定义  
  #define cli() _asm _ _Volatile ("cli":::"memory")
   是什么意思,特别是 cli和memory都带“”,what means?
[b]弃我去者昨日之日不可留,乱我心者今日之日多烦忧。[/b]
callmefire
驱动牛犊
驱动牛犊
  • 注册日期2002-12-05
  • 最后登录2003-02-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-02-14 13:03
yes
hometown
驱动大牛
驱动大牛
  • 注册日期2002-10-24
  • 最后登录2004-05-21
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-01-25 09:05
/include/asm/system.h中的宏定义  
  #define cli() _asm _ _Volatile (\"cli\":::\"memory\")
   是什么意思,特别是 cli和memory都带“”,what means?
 


这是GCC的行内汇编的用法, 就象C语言也要求一定的格式一样。 建议参考GCC手册5。36 Assembler instructions with c expression oprands. 里面讲的非常的清楚
How fair and how pleasant art thou, O love, for delights!This thy stature is like to a palm tree, and thy breasts to clusters of grapes.I said, I will go up to the palm tree, I will take hold of the boughs thereof: now also thy breasts shall be as clusters of the vine, and the smell of thy nose like apples;And the roof of thy mouth like the best wine for my beloved, that goeth down sweetly, causing the lips of those that are asleep to speak.
nsatar
驱动牛犊
驱动牛犊
  • 注册日期2003-01-24
  • 最后登录2003-01-24
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-01-24 11:57
没有什么意思,引号是数据格式要求,三个冒号为空表示没有输出变量、输入变量和被修改的变量
bclz
驱动牛犊
驱动牛犊
  • 注册日期2001-06-15
  • 最后登录2001-12-19
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2001-07-04 14:44
gcc中嵌入AT&T汇编的写法非常多, 可以去参考一下www.lisolet.net上的有关文档。
Free your mind and your OS will go.
游客

返回顶部