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 X-Google-Thread: 103376,d901a50a5adfec3c X-Google-Attributes: gid103376,public From: gisle@eple.ii.uib.no (Gisle S{lensminde) Subject: Re: Fortran or Ada? Date: 1998/09/24 Message-ID: #1/1 X-Deja-AN: 394420550 Content-Transfer-Encoding: 8bit References: <98092310454016@psavax.pwfl.com> <6uboki$8qh$2@toralf.uib.no> <6ud2i4$sp4@gcsin3.geccs.gecm.com> Content-Type: text/plain; charset=iso-8859-1 Organization: University of Bergen, Norway Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-09-24T00:00:00+00:00 List-Id: In article <6ud2i4$sp4@gcsin3.geccs.gecm.com>, John McCabe wrote: >gisle@lunde.ii.uib.no (Gisle S{lensminde) wrote: > ><..snip..> > >>An example of this is the aliasing ( &variable ) in C. Because all >>variables can be pointed to, it is much harder to "optimize away" a >>variable. Ada is not as bad as C in this respect, and the strong typing >>should in fact make some optimization tecniques easier, > >I read an interesting article in one of Tartan's (now TI I think) >bulletins on the subject of optimising Ada Vs. C. It explained how Ada >code could be optimised better because of the strict rules on e.g. >function side effects, and how the library system (was it in Ada 83?) >could be used to allow optimisation (e.g. inlining of subroutines etc) >across compilation units in some cases. > Can you give the full reference of this. Other articles that describes how to take benefit of Ada's features to improve optimization would be interesting. >>but the total effort spent to make good Ada compilers is far less then >>the effort of making good Fortran compilers. > >Can you quantify that? Probably no one have the full overview of the total literature of the subject, but most of the literature og optimizing I have seen, have been on Fortran C/C++ or some functional programing language, and not much on Ada, but I can't qantify it. -- ------------------------------------------------------------------------ Gisle S�lensminde Tlf: 55 34 07 63 Eliasmarken 16 5031 Laksev�g epost: gisle@ii.uib.no UNIX is user friendly. It's just selective about who its friends are. ------------------------------------------------------------------------