Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!rlgvax!guy
From: guy@rlgvax.UUCP (Guy Harris)
Newsgroups: net.lang.c
Subject: Re: Arguments in Registers
Message-ID: <531@rlgvax.UUCP>
Date: Thu, 28-Feb-85 21:23:52 EST
Article-I.D.: rlgvax.531
Posted: Thu Feb 28 21:23:52 1985
Date-Received: Sat, 2-Mar-85 04:27:26 EST
References: <420@lll-crg.ARPA> <800004@acf4.UUCP>
Organization: CCI Office Systems Group, Reston, VA
Lines: 12

> Arguments are stacked. Registers that are used in a routine are stacked at the
> start of the code. Thanks to the stack , no problem.

Except that saving registers which are *arguments* to a routine, rather
than *locals* in that routine, when entering the routine is usually not done.
The only reason the registers are saved is to preserve the values they
had in the calling procedure, but a C compiler which passed arguments in
registers may or may not assume that preserving the values of the registers
used as argument temporaries is important.

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy