Re: Caller/Callee saved Registers

robertsw@agcs.com (Ye Wilde Ryder)
Wed, 23 Mar 1994 17:52:20 GMT

          From comp.compilers

Related articles
[3 earlier articles]
Re: Caller/Callee saved Registers hbaker@netcom.com (1994-03-22)
Caller/Callee saved Registers ssimmons@convex.com (1994-03-22)
Re: Caller/Callee saved Registers paulb@travis.csd.harris.com (1994-03-22)
Re: Caller/Callee saved Registers cliffc@noel.cs.rice.edu (1994-03-22)
Re: Caller/Callee saved Registers alk@et.msc.edu (1994-03-23)
Re: Caller/Callee saved Registers bart@cs.uoregon.edu (1994-03-23)
Re: Caller/Callee saved Registers robertsw@agcs.com (1994-03-23)
Re: Caller/Callee saved Registers Peter-Lawrence.Montgomery@cwi.nl (1994-03-24)
Re: Caller/Callee saved Registers pdp8@ai.mit.edu (1994-03-24)
Re: Caller/Callee saved Registers ghiya@flo.cs.mcgill.ca (1994-03-24)
Re: Caller/Callee saved Registers paulb@travis.csd.harris.com (1994-03-24)
Re: Caller/Callee saved Registers hbaker@netcom.com (1994-03-24)
Re: Caller/Callee saved Registers bart@cs.uoregon.edu (1994-03-25)
[20 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: robertsw@agcs.com (Ye Wilde Ryder)
Keywords: registers, optimize, comment
Organization: Compilers Central
References: 94-03-054
Date: Wed, 23 Mar 1994 17:52:20 GMT

pmagun@iiic.ethz.ch (Paul Jakob Magun) writes:
>I'm having some difficulty grasping the key idea behind the division in
>caller/calleesaved registers:


Preston Briggs writes:
>The idea is a compromise.


I've often thought the solution to this problem could easily be solved in
hardware. A call instruction that indicates which regs need saving in a
bitmask could be combined with a stack-frame-creation instruction
(similar to the mc68k family's link instr.) that logically ands this
bitmask with another bitmask that indicates which regs the routine needs
to trash. The result of this logical and would be the actual regs that
need saving. This could all be done in software, but it would be far
more efficient in hardware.


so why hasn't this been done yet?


gears,
ye wilde ryder
--
robertsw@agcs.com
[The vax call instruction has a save mask that supports a callee saves
convention. It's slower than a snoozing slug. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.