comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter C. Chapin" <PChapin@vtc.vsc.edu>
Subject: Re: How To Pass Large Object Arguments
Date: Sun, 24 Nov 2013 07:45:31 -0500
Date: 2013-11-24T07:45:31-05:00	[thread overview]
Message-ID: <alpine.DEB.2.02.1311240740110.2219@whirlwind> (raw)
In-Reply-To: <sqadnfc3IfFSNQzPnZ2dnUVZ_jydnZ2d@giganews.com>

On Sat, 23 Nov 2013, FritzVonBraun wrote:

> So my question is, is there a de facto standard at least?

Let the compiler worry about it.

You only need to step in if you can show (for example with profiling) that 
your program's performance is inadequate AND the problem is due to a 
"foolish" choice of parameter passing mechanism on the part of the 
compiler.

Certain types are definitely passed by reference, e.g., limited types that 
can't be copied. For types that could be passed either way I think you can 
be confident that any sane compiler will do "the right thing" and pass 
large objects by reference.

Peter



  parent reply	other threads:[~2013-11-24 12:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-24  7:20 How To Pass Large Object Arguments FritzVonBraun
2013-11-24 11:12 ` Ludovic Brenta
2013-11-24 12:45 ` Peter C. Chapin [this message]
2013-11-25 10:59 ` Georg Bauhaus
2013-11-25 11:09 ` AdaMagica
2013-11-25 16:53 ` adambeneschan
2013-11-25 17:05   ` sbelmont700
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox