使用“注册”的经验 [英] Experiences using "register"

查看:68
本文介绍了使用“注册”的经验的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人发现声明变量注册受影响

执行速度?如果是什么硬件及哪些?/ b
哪一年?

Has anyone found that declaring variables register affected
speed of execution ? If yes on what hardware and around
which year ?

推荐答案

2008年3月17日星期一06:24:27 -0700(PDT),Spiros Bousbouras

< sp **** @ gmail.comwrote in comp.lang.c:
On Mon, 17 Mar 2008 06:24:27 -0700 (PDT), Spiros Bousbouras
<sp****@gmail.comwrote in comp.lang.c:

有没有人发现声明变量寄存器受影响

执行速度?如果是什么硬件和哪些?/ b $ b哪一年?
Has anyone found that declaring variables register affected
speed of execution ? If yes on what hardware and around
which year ?



在相当多的嵌入式架构中,8到32位。


最后一次是今天早上。


-

Jack Klein

主页: http://JK-Technology.Com

常见问题解答

comp.lang.c http://c-faq.com/

comp.lang.c ++ http://www.parashift.com/c++-faq-lite/

alt.comp.lang.learn.c-c ++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html

On quite a few embedded architectures, 8 to 32 bit.

The last time was this morning.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html


3月18日,02:20,Jack Klein< jackkl ... @ spamcop.netwrote:
On 18 Mar, 02:20, Jack Klein <jackkl...@spamcop.netwrote:

2008年3月17日星期一06:24:27 -0700(PDT),Spiros Bousbouras

< spi ... @ gmail.comwrote in comp .lang.c:
On Mon, 17 Mar 2008 06:24:27 -0700 (PDT), Spiros Bousbouras
<spi...@gmail.comwrote in comp.lang.c:

有没有人发现声明变量寄存器受影响

执行速度?如果是什么硬件和哪些?/ b $ b哪一年?
Has anyone found that declaring variables register affected
speed of execution ? If yes on what hardware and around
which year ?



在相当多的嵌入式架构中,8到32位。


最后一次是今天早上。


On quite a few embedded architectures, 8 to 32 bit.

The last time was this morning.



你如何选择申报注册的变量?

一般情况下最常使用哪种变量或者

您是否保留了精确的统计数据或其他方法?

How do you choose which variables to declare register ?
Is it on a general feel on which gets used the most or
do you keep precise statistics or a different method ?


3月18日,02:20,Jack Klein< jackkl ... @ spamcop.netwrote :
On 18 Mar, 02:20, Jack Klein <jackkl...@spamcop.netwrote:

2008年3月17日星期一06:24:27 -0700(PDT),Spiros Bousbouras

< spi ...在comp.lang.c中@ gmail.comwrote:
On Mon, 17 Mar 2008 06:24:27 -0700 (PDT), Spiros Bousbouras
<spi...@gmail.comwrote in comp.lang.c:

有没有人发现声明变量寄存器受影响

执行速度?如果是什么硬件和哪些?/ b $ b哪一年?
Has anyone found that declaring variables register affected
speed of execution ? If yes on what hardware and around
which year ?



在相当多的嵌入式架构中,8到32位。


最后一次是今天早上。


-

Jack Klein

主页: http://JK-Technology.Com

常见问题解答

comp.lang.chttp:// c-faq。 com /

comp.lang.c ++ http: //www.parashift.com/c++-faq-lite/

alt.comp.lang.learn.c-c ++ http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc .html



是否有可能将声明为寄存器的变量定位为
可能会混淆编译器的优化方法降低

整体代码的效率?


尼克

Is it possible at all that, variables declared to be register located
might confuse the compiler''s optimisation methods and actually reduce
the efficiency of the overall code?

Nick


这篇关于使用“注册”的经验的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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