|[21 earlier articles]|
|Re: Register allocation firstname.lastname@example.org (email@example.com) (2005-05-20)|
|Re: Register allocation firstname.lastname@example.org (Chuck Riechers) (2005-05-21)|
|register allocation email@example.com (David Lindauer) (2005-11-12)|
|register allocation firstname.lastname@example.org (1989-11-22)|
|Re: register allocation email@example.com.EDU (1989-11-24)|
|Register Allocation napi@rangkom.MY (1990-02-17)|
|Re: Register Allocation firstname.lastname@example.org (1990-02-15)|
|Re: Register Allocation email@example.com (1990-02-26)|
|Re: Register Allocation Moss@cs.umass.edu (1990-02-25)|
|Re: Register Allocation firstname.lastname@example.org (1990-02-27)|
|Register Allocation email@example.com (1993-03-31)|
|Register Allocation firstname.lastname@example.org (1993-08-31)|
|Re: Register Allocation email@example.com (1993-09-06)|
|[1 later articles]|
|From:||firstname.lastname@example.org (Herman Rubin)|
|Summary:||It is not possible on most computers without excessive cost|
In article <1990Feb20.email@example.com>, napi@rangkom.MY (Mohd Hanafiah b. Abdullah) writes:
> How does one perform register allocation on scalar variables that may
> be pointed to by others?
> I am curious because, a pointer assumes that the variable it points to
> resides in memory, but in actuality the variable resides in a register.
> I am sure there is a solution to this problem and has been asked before
> in the newsgroup, but could you please e-mail the answer to me anyway?
Unfortunately, this is not the case. I have frequently wanted to do this,
and I have no difficulty using machine language. The only mainframes whose
instruction set I have known which are appropriately set up in hardware for
this are the long obsolete UNIVAC 1108 and 1110. There are some I have seen
for which this can be done with difficulty, but it would not be faster than
keeping the items in memory.
[The PDP-10/DEC-20 has addressable registers as well, but as pointed out
elsewhere that's only a small part of the problem. As soon as you call
another routine, it's liable to save the register and put something else
there, and you lose. -John]
Return to the
Search the comp.compilers archives again.