Args in Regs

root rbj at icst-cmr
Tue Apr 29 05:23:23 AEST 1986


> Why do so many of the micro operating systems
> insist on putting arguments in registers!!!.  Even MS-DOS expects
> arguments in registers rather than on the stack.

Surprise! Even UNIX (V6) does this! The reason is that the machine
generally uses the same regs in supervisor mode. This is easier than
trying to did the args out of the user's space, which entails accessing
another map entry. BSD seems to use the stack however.

	(Root Boy) Jim Cottrell		<rbj at cmr>
	"One man gathers what another man spills"



More information about the Comp.lang.c mailing list