Andrew J Bromage <[EMAIL PROTECTED]> writes: > G'day all. > > On Fri, Apr 26, 2002 at 08:16:27AM -0400, Melvin Smith wrote: > >> I also vote for reserving some caller-save registers to make >> arg passing faster, however, reserving 16 is probably useless, except >> for symmetry. >> >> I think most texts agree that 5 or so are about all you need. > > Fair enough. In that case, in the interests of using round numbers, > I vote for X0-X7 to be for argument passing and, in the event that > they're not actually used for argument passing, caller-save.
I'm trying to see how, if you want genuine continuations and/or tail call optimization, you're going to get away with anything but 'caller saves everything important to it', and what do you know, I can't. A decent compiler will obviously optimize away some of the saving of 'extras' for relatively simple subroutine calls, but at the limit you're going to need to presave everything surely. -- Piers "It is a truth universally acknowledged that a language in possession of a rich syntax must be in need of a rewrite." -- Jane Austen?