- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
013 i 和 i的效率差别(013 efficiency difference between I and I)
013 i 和 i的效率差别(013 efficiency difference between I and I) 013 i++ and ++i efficiency difference between.Txt48 smile, is a green in spring, is under the sun hungry a shade, autumn is a cool breeze, a winter campfire. Smile to face it, you will feel the life is so warm. The efficiency difference between i++ and ++i A discussion of numerous issues, we finally see a person speaks fully and clearly. This post is shornmao (CAT) hair, I just helped him put it, that cat will not be angry with me. And First of all, a simple comparison of the efficiency of the prefix and suffix operator operator is one-sided, because there are many factors that influence the answer to this question. First consider the built-in data types: If the increment expression result is not used, but simply to increase one operand, the answer is clear, prefix and suffix method without any distinction, the compiler process should be the same, it is difficult to imagine what the compiler can make any difference in the create new styles between the two. Test C++ source code is as follows: //test1.cpp Void (test) { Int i=0; I++; ++i; } Gnu C/C++ 2 compiler assembler intermediate code is as follows: .file test1.cpp Gcc2_compiled: ___gnu_compiled_cplusplus: .text .align 4 .globl _test__Fv .def _test__Fv;.Scl 2;.Type 32;.Endef _test__Fv: Pushl%ebp Movl%esp,%ebp Subl $24,%esp Movl $0 -4 (%ebp); i=0 Incl -4 (%ebp); i++ Incl -4 (%ebp); ++i JMP L3 JMP L2 .p2align, 4, 7 L3: L2: Leave Ret Obviously, whether i++ or ++i is only a incl instruction. If the result of the expression is used, then the situation is slightly more complex. Test C++ source code is as follows: //test2.cpp Void (test) { Int i=0, a, b; A=i++; B=++i; } Gnu C/C++ 2 compiler assembler intermediate code is as follows: .file test2.cpp Gcc2_compiled: ___gnu_compiled_cplusplus: .text .align 4 .globl _test__Fv .def _test__Fv;.Scl 2;.Type 32;.Endef _test__Fv: Pushl%ebp Movl%esp,%ebp Subl $24,%esp Movl $0 -4 (%ebp); i=0 Movl -4 (%ebp),%eax; I / ax Movl%e
您可能关注的文档
- (学普6-1)网络答疑((general 6-1) network answering).doc
- (中文和英文)求职应聘自我介绍范例((Chinese and English) apply for self introduction example).doc
- (电大毕业论文范文)对于艺术伪艺术,真商业党校毕业论文范文((TV University Thesis) for art, pseudo art, real business school).doc
- (附)约翰·法雷尔形象分析之成长篇((attached) the growth chapter of John Farrell's image analysis).doc
- (建筑工程)第1章2((construction) chapter first 2).doc
- (不是很完美)select列表项关联((not perfect) select list item association).doc
- ((人教版))[[初一数学试题]]新人教版初一数学上册期末考试(含答案)...(((PEP)) test of junior mathematics new edition junior mathematics book final exam (with answers)...).doc
- (德中轮)浅谈救助遇险锚泊船的体会(Talking about the experience of rescue distress mooring ship).doc
- (经典)手动挡驾驶技巧((Classic) manual driving skills).doc
- (跑跑卡丁车)技术心得 -- 跑跑卡丁车(Technical experience (running kart) - run kart).doc
- 01.01.11-我国中药出口走出低谷(01.01.11- Chinese medicine exports go out of the trough).doc
- 03-04赛季nba大十悲剧人物(03-04 season NBA big ten tragic characters).doc
- 03-2-1.如何改善企业文化,推动企业发展(How does 03-2-1. improve corporate culture and promote enterprise development).doc
- 02恒牙形态(02 permanent teeth shape).doc
- 03-3-1.回归企业本质(03-3-1. regression, enterprise, essence).doc
- 02 安全机构及相关人员职责(02 responsibilities of security authorities and related personnel).doc
- 0227《国际法》网上作业题及答案(0227 international law online homework questions and answers).doc
- 03-3-1回归企业本质(03-3-1 regression, enterprise, essence).doc
- 03g101-1勘误、调整、增补(03g101-1 Corrigendum, adjustment, additions).doc
- 03栈的基本操作之括号匹配,进制转换(03, the basic operation of the stack bracket matching, hexadecimal conversion).doc
文档评论(0)