|The quest for the optimal calling convention; a model for specifying m firstname.lastname@example.org (Antti Sykari) (2003-01-12)|
|Re: The quest for the optimal calling convention; a model for specif email@example.com.OZ.AU (2003-01-17)|
|Re: The quest for the optimal calling convention; a model for specifyi firstname.lastname@example.org (Antti Sykari) (2003-01-25)|
|Re: The quest for the optimal calling convention; a model for specifyi email@example.com (John R. Strohm) (2003-01-26)|
|Re: The quest for the optimal calling convention; a model for specifyi firstname.lastname@example.org (Rodney M. Bates) (2003-01-27)|
|Re: The quest for the optimal calling convention; a model for specif email@example.com (John R. Strohm) (2003-01-29)|
|Re: The quest for the optimal calling convention; a model for spe firstname.lastname@example.org (Jan C.=?iso-8859-1?Q?Vorbr=FCggen?=) (2003-02-05)|
|Re: The quest for the optimal calling convention; a model for spe email@example.com (Rodney M. Bates) (2003-02-05)|
|Re: The quest for the optimal calling convention; a model for specifyi firstname.lastname@example.org (John R. Strohm) (2003-02-11)|
|From:||"Rodney M. Bates" <email@example.com>|
|Date:||5 Feb 2003 23:54:50 -0500|
|Organization:||EarthLink Inc. -- http://www.EarthLink.net|
|References:||03-01-065 03-01-070 03-01-126 03-01-164 03-01-169 03-01-172|
|Posted-Date:||05 Feb 2003 23:54:50 EST|
"John R. Strohm" wrote:
> "Rodney M. Bates" wrote:
> > Actually, this is somewhat of a time-bomb in Ada. On some cases, the
> > language specifies the actual parameter transmission mechanism. But in
> > some combinations of types and transmission modes, the language leaves
> > it up to the compiler writer whether to use reference or some
> > variation of copy in/out, etc. In the presence of non-local variable
> > references, aliasing, etc., this can affect program semantics.
> True. On the other hand, it is generally understood by now, thirty years
> after the Structured Programming Revolution, that non-local variable
> references and aliasing are Bad Things To Do.
> > If you write an Ada program that depends on which mechanism the
> > compiler chooses, the language defines your program as "erroneous",
> > which means you will not get any error message and whatever happens
> > is entirely your fault. I'm sure erroneousness is undecidable.
> One you allow non-local variable references in the presence of
> interrupts, for example, you are in a world of hurt, because it is
> impossible to say from one instant to the next what value a non-local
> variable might actually have, without examining EVERY line of code in
> the system that MIGHT touch that variable. You may write it in one
> line, and test it in the next, but in between the two an interrupt
> occurred and the interrupt handler had to change the state variable.
> (This may not be directly do-able in Ada, but the principle applies.)
> Observe that this makes it impossible to say that a procedure actually
> does what it claims to do, if one of the variables it uses can be
> trashed by someone else.
> The Gypsy language at UT Austin in the late 1970s (Ambler, Good, et
> al) was designed specifically to be formally verifiable. They did it
> the easy way, and outlawed aliasing and non-local references
> altogether. Every variable was local to some task, and tasks could
> only send messages through message buffers (FIFO queues protected by
> semaphores). The message buffers were built-in to the language, with
> semantics carefully defined.
All true. But the situation I was complaining about
1) Happens even in the absence of interrupts, other threads, etc., and
2) Can be fixed without outlawing aliasing or non-local references,
by just specifying in the langauge, what the parameter transmission
Rodney M. Bates
Return to the
Search the comp.compilers archives again.