免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: ethantsien
打印 上一主题 下一主题

[C] c中内嵌汇编movl cr3出错 [复制链接]

论坛徽章:
3
15-16赛季CBA联赛之山东
日期:2016-10-30 08:47:3015-16赛季CBA联赛之佛山
日期:2016-12-17 00:06:31CU十四周年纪念徽章
日期:2017-12-03 01:04:02
21 [报告]
发表于 2012-10-06 16:12 |只看该作者
回复 20# folklore


    no. both
  1. movl %cr3, %eax
  2. movq %cr3, %rax
复制代码
are valid is right.

    but, I think how many bytes are moved is not decided by movl or movq. it's decided by the oprand %eax or %rax. once the oprand has been decided, the instructions decided -- ref to my qoute, prefix is ignored, so movl %cr3, %eax and movq %cr3, %rax have different opcode. but, you also should use movl and movq -- because the compiler need it.

    oh. it seems a little complex. I don't know if I've explained clearly. and, -- Just I think so, hum... hoho.

论坛徽章:
3
15-16赛季CBA联赛之山东
日期:2016-10-30 08:47:3015-16赛季CBA联赛之佛山
日期:2016-12-17 00:06:31CU十四周年纪念徽章
日期:2017-12-03 01:04:02
22 [报告]
发表于 2012-10-06 16:25 |只看该作者
回复 14# folklore


folklore 发表于 2012-10-06 14:52
it is the reason that "哪>>里>>" be blocked.

哪>>里>>有压迫哪>>里就有反抗


    なるほど! it's funny, hum...

论坛徽章:
3
15-16赛季CBA联赛之山东
日期:2016-10-30 08:47:3015-16赛季CBA联赛之佛山
日期:2016-12-17 00:06:31CU十四周年纪念徽章
日期:2017-12-03 01:04:02
23 [报告]
发表于 2012-10-06 16:49 |只看该作者
回复 11# folklore


   
folklore 发表于 2012-10-06 14:38
google.

**劣质的钛银手镯
**小苏打卖
**幻象染料
**卖百合
**卖罗汉果
**卖艾条
**电子书下载
**金镖鱼群
**星木
**卖迷魂药


you are very funny, ...

论坛徽章:
0
24 [报告]
发表于 2012-10-08 12:30 |只看该作者
真是强人               

论坛徽章:
0
25 [报告]
发表于 2012-10-08 12:31 |只看该作者
都不记得交叉汇编了         

论坛徽章:
3
15-16赛季CBA联赛之山东
日期:2016-10-30 08:47:3015-16赛季CBA联赛之佛山
日期:2016-12-17 00:06:31CU十四周年纪念徽章
日期:2017-12-03 01:04:02
26 [报告]
发表于 2012-10-08 13:48 |只看该作者
嗯...
C版被标题党 求作业党等等占领了...

其实LZ很好的一个问题. 所以我回帖也回得认真. 过了两天看看, 晕, 标题党才是王道啊.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP