From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: "out" parameters
Date: Tue, 25 May 2004 16:34:35 -0400
Date: 2004-05-25T16:34:35-04:00 [thread overview]
Message-ID: <RfadnbhavPhGMC7dRVn-vg@comcast.com> (raw)
In-Reply-To: <ln4qq9io8g.fsf@nuthaus.mib.org>
Keith Thompson wrote:
> Ludovic Brenta <ludovic.brenta@insalien.org> writes:
> [...]
>
>>Besides by-copy and by-reference, there is also the possibility of
>>passing parameters in processor registers.
>
>
> Isn't that just a special case of by-copy?
Technically, no. An argument can be passed by reference in a register,
even though the reference is implicit in the code. For example you
could have a bit array in a register, and pass the index of the bit that
was a parameter.
The only reason this matters is that there are hardware registers which
may be implicit or explicit arguments to OS routines. The semantics are
by reference, even though the registers are defined by the hardware.
--
Robert I. Eachus
"The terrorists rejoice in the killing of the innocent, and have
promised similar violence against Americans, against all free peoples,
and against any Muslims who reject their ideology of murder. Their
barbarism cannot be appeased, and their hatred cannot be satisfied.
There's only one way to deal with terror: We must confront the enemy and
stay on the offensive until these killers are defeated." -- George W. Bush
next prev parent reply other threads:[~2004-05-25 20:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-20 23:37 "out" parameters Jo
2004-05-20 23:53 ` Ludovic Brenta
2004-05-21 0:33 ` Georg Bauhaus
2004-05-21 19:17 ` Keith Thompson
2004-05-21 22:25 ` Vinzent 'Gadget' Hoefler
2004-05-22 8:20 ` Martin Krischik
2004-05-25 20:34 ` Robert I. Eachus [this message]
2004-05-21 1:09 ` Jeffrey Carter
2004-05-21 9:28 ` Martin Krischik
2004-05-28 23:14 ` Jo
2004-05-28 23:45 ` Marius Amado Alves
2004-05-29 1:45 ` Jeffrey Carter
2004-05-29 7:15 ` Martin Krischik
2004-06-04 21:59 ` Nick Roberts
2004-06-18 0:58 ` Jo
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox