Arguments in Registers

Guy Harris guy at rlgvax.UUCP
Fri Mar 1 12:23:52 AEST 1985


> 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



More information about the Comp.lang.c mailing list