Hi
> Some of the snippets and patches I've found define var's as
>
> register int a;
This only tells the compiler: please, if possible, place the var in
a fast register. It does NOT necessarily mean that it will happen.
>
> I would guess this places this var directly into a resister for faster
> access. Well thats what I remember from assembly on a VAX *shudder*.
> Now I would guess a piece of code that overuses this won't be that
> effective. Otherwise every var would be placed directly into a register.
>
> Any thoughts on the use of registers, how often to use them, and the most
> effective use of them?
The compiler should take good care of that problem.
>
> Rich
>
Chris
>
> +------------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
> +------------------------------------------------------------+
>
--
/----------------------------------------------------------------------------\
| Christian Loth | Meet me as the Shadowdancer in the |
| Shadowdancer@unidui.uni-duisburg.de | REALM OF MAGIC |
| http://www.geocities.com/Area51/ | telnet realm.zfn.uni-bremen.de 4000 |
| Cavern/4593 | http://realm.zfn.uni-bremen.de/ |
| "The road goes ever on and on!" - Bilbo Baggins |
\----------------------------------------------------------------------------/
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST