From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: Are unconstrained arrays passed by references?
Date: 1999/08/11
Date: 1999-08-11T00:00:00+00:00 [thread overview]
Message-ID: <1999Aug11.073146.1@eisner> (raw)
In-Reply-To: 7oq77c$1et$1@nnrp1.deja.com
In article <7oq77c$1et$1@nnrp1.deja.com>, Robert Dewar <robert_dewar@my-deja.com> writes:
> In article <37B071C8.FF759493@averstar.com>,
> Tucker Taft <stt@averstar.com> wrote:
>> If the subprogram has convention "C" then you can be sure that
>> arrays are passed by reference.
>
> I disagree, this is implementation advice only, not a
> requirement of the standard. For example, it would be perfectly
> valid to pass a 32 bit packed array as an int (it would not
> meet the implementation advice, but it would be valid).
Doesn't this depend on the C compiler to which you are
interfacing ? I know VAX C can accept an array of 9
bytes passed by value (it spreads the bytes across
the registers when running on Alpha). I presume DEC
C can do the same thing for the sake of compatibility.
The only things I know about C compilers are the ugly things.
Larry Kilgallen
next prev parent reply other threads:[~1999-08-11 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-10 0:00 Are unconstrained arrays passed by references? bourguet
1999-08-10 0:00 ` Robert A Duff
1999-08-10 0:00 ` bourguet
1999-08-10 0:00 ` Tucker Taft
1999-08-10 0:00 ` Robert Dewar
1999-08-11 0:00 ` Larry Kilgallen [this message]
1999-08-10 0:00 ` Ted Dennison
1999-08-11 0:00 ` Robert A Duff
1999-08-11 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox