Path: utzoo!utgpu!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!nsc!taux01!taux02!amos From: amos@taux02.UUCP (Amos Shapir) Newsgroups: comp.arch Subject: Re: register save/restore Message-ID: <234@taux02.UUCP> Date: 3 Nov 88 15:22:18 GMT References: <3300037@m.cs.uiuc.edu> <5938@killer.DALLAS.TX.US> <7580@aw.sei.cmu.edu> <2849@ima.ima.isc.com> Organization: National Semiconductor (IC) Ltd, Israel Home of the 32532 Lines: 10 Hdate: 23 Heshvan 5749 I haven't seen anyone mention the idea of mixing caller-saves and callee-saves methods: the caller hands to the callee a mask of live registers; the callee ANDs this with a mask of the registers it uses and saves the registers whose corresponding bits are set. The mask the callee hands to the routines it calls is the OR of these two masks. (I hope that's clear). -- Amos Shapir amos@nsc.com National Semiconductor (Israel) P.O.B. 3007, Herzlia 46104, Israel Tel. +972 52 522261 TWX: 33691, fax: +972-52-558322 34 48 E / 32 10 N (My other cpu is a NS32532)