W
Willem
Ioannis wrote:
) Willem wrote:
)> And what about the not 'in general' cases where there are valid reasons
)> for variables to be declared register in large scopes ?
)>
)> Those are the interesting cases that are counterexamples to your claim
)> that a compiler is defective if it generates less-efficient code when
)> 'register' is used. Therefore those are the cases under discussion.
)>
)> Or are you claiming that *all* those cases are 'improper use' ?
)
) I think "register" should be used in as small scopes as possible, the
) same way that "inline" should be used with as small functions as possible.
And I think that cases exist where the smallest scope possible is such that
it will touch multiple code paths, making one more efficient at the cost of
others. It is the programmers discretion to make this choice.
These cases are counterexamples to your claim.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
) Willem wrote:
)> And what about the not 'in general' cases where there are valid reasons
)> for variables to be declared register in large scopes ?
)>
)> Those are the interesting cases that are counterexamples to your claim
)> that a compiler is defective if it generates less-efficient code when
)> 'register' is used. Therefore those are the cases under discussion.
)>
)> Or are you claiming that *all* those cases are 'improper use' ?
)
) I think "register" should be used in as small scopes as possible, the
) same way that "inline" should be used with as small functions as possible.
And I think that cases exist where the smallest scope possible is such that
it will touch multiple code paths, making one more efficient at the cost of
others. It is the programmers discretion to make this choice.
These cases are counterexamples to your claim.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT