From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd3a5ba6349a6060 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: should I be interested in ada? Date: 1999/02/19 Message-ID: <7ajrpu$jpq$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 446057220 References: <7a72e6$g55$1@probity.mcc.ac.uk> <36C93BB4.1429@ecs.soton.ac.uk> <7afc1o$3mi$2@plug.news.pipex.net> <7afttr$7v3$1@nnrp1.dejanews.com> <7aganu$qsc$1@plug.news.pipex.net> <36CC11A1.C7A71642@hercii.mar.lmco.com> <7ahkn0$kab$1@plug.news.pipex.net> <36CC6AC0.25DBE56D@erols.com> <7aikfp$nhq$3@plug.news.pipex.net> <36CD44CF.A61DAE96@erols.com> X-Http-Proxy: 1.0 x13.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Feb 19 14:17:43 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-02-19T00:00:00+00:00 List-Id: In article <36CD44CF.A61DAE96@erols.com>, dnagle@erols.com wrote: > Hello, > > Does Ada enforce anti-aliasing rules regarding the global > variables? The anti-aliasing rules are in some respects weaker, although in other respects stronger (the stronger typing for example allows better aliasing information to be built). You can construct artificial examples which give a theoretical optimization advantage in either direction. How important this is in practice is anyone's guess. > Do the Ada constructs which have been given as > substitutes for Fortran 95 array syntax have an implied > order of operation? If I say > > real, dimension( n, n) :: a, b > ! f95-speak for 2 nxn arrays of reals > > and then say > > a = b ! f95 array assignment > > The order in which the assignments occur if unspecified. Actually here Ada has an advantage, it does not even see the assignment of b to a as a "series of assignment" in any sense, Rather it is an assignment of a composite object, and yes of course the compiler is free to achieve this in any manner it pleases. However, other aggregate operations in Fortran that imply parallelism may not be so easy to model in Ada. > I really am simply courious. I see many things in Ada > which. I find attractive and I want to know about the > optimization issues. Nick proposed that "the high level language is theoretically compltely immaterial [to the optimization issue]", and that of course is completely wrong. It is definitely the case that there are various theoretical differences, but as always, the difficulty with any optimization issues is knowing how much difference it will make in practice, and that is hard to know. Usually such theoretical differences are swamped by other engineering issues, i.e. "other things being equal" is a condition that is not in practice easy to meet. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own