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,99a6311c4195e21b X-Google-Attributes: gid103376,public X-Google-Thread: 1094ba,99a6311c4195e21b X-Google-Attributes: gid1094ba,public From: "E. Robert Tisdale" Subject: Re: Matrix Multiplication Date: 1999/12/15 Message-ID: <3856E1FD.26C05235@netwood.net>#1/1 X-Deja-AN: 560767290 Content-Transfer-Encoding: 7bit References: <385699B5.59C14D03@lmco.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsabuse@supernews.com Organization: Posted via Supernews, http://www.supernews.com MIME-Version: 1.0 Newsgroups: comp.lang.ada,comp.lang.fortran Date: 1999-12-15T00:00:00+00:00 List-Id: William Dale wrote: > I was challenged by one of my co-workers - > a control and guidance type - not a real software engineer. > > His claim: > "Fortran is faster doing floating point multiplication than Ada" > > I could not get any other specifications such as hardware, > particular compiler, version, vendor, special math libraries > or any other equivocations. Just he claims the above in all cases. > > So could I get some help getting times > for a Matrix inversion on a 50X50 floating point matrix in both languages. > Anyone already done these types of tests? > Any suggestions on special libraries that he may not know about > to do such things in Ada. Obviously he has the Fortan side nailed. > > I know it is silly but this is the kind of FUD > that gets thown around all the time. > Either language could win - it depends on many of the above issues. Performance, in general, has nothing to do with the programming language. There may be considerable differences between optimizing compilers. Fortran compilers are typically better at optimizing numerical codes than other compilers because that is what Fortran programmers do. Just get a copy of your co-workers Fortran source code and convert it into an Ada program then compile his code with the GNU Fortran compiler g77 and compile your code with the GNU Ada compiler gnat. Both compilers should emit exactly the same code unless you do something wrong. Hope this helps, E. Robert Tisdale