Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!amgraf!cpsolv!rhg From: rhg@cpsolv.UUCP (Richard H. Gumpertz) Newsgroups: comp.sys.m88k Subject: Re: Register Allocation (was Re: Info about 88open & standards) Message-ID: <460@cpsolv.UUCP> Date: 5 Dec 89 14:26:24 GMT References: <1989Nov16.212149.9770@paris.ics.uci.edu> <100050002@hpcuhc.HP.COM> Reply-To: rhg@cpsolv.uucp (Richard H. Gumpertz) Organization: Computer Problem Solving, Leawood, Kansas Lines: 17 In article thomas@uplog.se (Thomas Hameenaho) writes: >I have an idea that perhaps could be a bit of both worlds: What about having >the caller supply a mask of live registers to the callee, ie. registers that >must not be clobbered to the callee? This mask should be ANDed with a mask of >the registers that the callee clobbers and handed to the equivalent of MOVEM >(68k) or CALLx (VAX). The save/restore should of course be handled by >microcode/hardware to make it fast. >This way there would never be unnecessary saves. Gee, what a great idea! We could add microcode to our RISC machines and turn them into CISC machines. Moby sigh. :-) -- =============================================================================== | Richard H. Gumpertz rhg%cpsolv@uunet.uu.NET -or- ...uunet!amgraf!cpsolv!rhg | | Computer Problem Solving, 8905 Mohawk Lane, Leawood, Kansas 66206-1749 | ===============================================================================