From: | glen herrmannsfeldt <gah@ugcs.caltech.edu> |
Newsgroups: | comp.compilers,comp.lang.pl1 |
Date: | Wed, 29 Aug 2007 12:53:56 -0800 |
Organization: | Compilers Central |
References: | 07-08-016 07-08-021 07-08-024 07-08-034 07-08-037 07-08-040 07-08-041 07-08-044 07-08-051 07-08-054 07-08-081 |
Keywords: | parallel, PL/I |
Posted-Date: | 29 Aug 2007 15:56:43 EDT |
Tom Linden wrote:
> On Sun, 19 Aug 2007 22:12:19 -0700, James J. Weinkam <jjw@cs.sfu.ca> wrote:
(snip)
>>1. Array expressions are evaluated element by element in row major
>>order, and
>>2. An array assignment is equivalent to a set of nested loops which
>>effectively perform a series of scalar assignments in row major
>>order.
>>This obviates the need for array temporaries except for the final
>>result of an array expression.
(snip)
> We do the same with our (ANSI) compiler.
I thought this started with the note that ANSI didn't do it that way.
That would seem to mean that you have a non-ANSI compiler. (But
probably more compatible with others.)
Note which standards IBM claims for their compiler:
http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/ibmol004/FRONT_1.6
-- glen
[As far as I can tell, the 1976 ANSI PL/I standard says nothing at all about
the order of evaluation of array expressions. But it's very hard to read and
it's possible I missed something. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.