Related articles |
---|
Parameter Passing Via Registers lins@apple.com (Chuck Lins) (1991-04-29) |
Re: Parameter Passing Via Registers preston@ariel.rice.edu (1991-04-30) |
Re: Parameter Passing Via Registers mike@taumet.com (1991-04-30) |
Re: Parameter Passing Via Registers zlsiial@cms.manchester-computing-centre.ac.uk (A. V. Le Blanc) (1991-04-30) |
Re: Parameter Passing Via Registers mike@yalla.tuwien.ac.at (1991-04-30) |
Re: Parameter Passing Via Registers ram+@cs.cmu.edu (Rob MacLachlan) (1991-05-01) |
Re: Parameter Passing Via Registers mauney@eos.ncsu.edu (1991-05-02) |
Re: Parameter Passing Via Registers mike@vlsivie.tuwien.ac.at (1991-04-30) |
Re: Parameter Passing Via Registers mario@cs.man.ac.uk (Mario Wolczko) (1991-05-02) |
Re: Parameter Passing Via Registers mike@vlsivie.tuwien.ac.at (Michael K. Gschwind) (1991-05-03) |
Re: Parameter Passing Via Registers mauney@eos.ncsu.edu (1991-05-07) |
Newsgroups: | comp.compilers |
From: | mauney@eos.ncsu.edu (Dr. Jon Mauney) |
Keywords: | Pascal, registers, optimize, Modula |
Organization: | Project EOS - North Carolina State University |
References: | <1991Apr30.022048.4539@iecc.cambridge.ma.us> <MIKE.91Apr30152206@yalla.tuwien.ac.at> |
Date: | Thu, 02 May 91 14:57:03 GMT |
Most of the discussion has mentioned ways of forcing parameters passed in
registers onto the stack for non-local reference. Note that it is not
strictly necessary for such parameters to be on the stack. Since the
references occur within internal functions, code could be compiled to use
the value in the register. You would have to change the calling sequence
so as to preserve the register, but you have control of both sides of the
call, so that is possible. Conceivably, this could be done even if the
procedure is passed as a parameter -- just make sure the register value is
part of the closure that you pass.
I'm not claiming it's worth the trouble...
--
Jon Mauney, parsing partisan
Computer Science Dept.
N.C. State University
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.