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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-04 06:34:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news-xfer.cox.net!peer01.cox.net!cox.net!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-binary.blueyonder.co.uk.POSTED!53ab2750!not-for-mail User-Agent: Microsoft-Entourage/10.1.1.2418 Subject: Re: Ideas for Ada 200X From: Bill Findlay Newsgroups: comp.lang.ada Message-ID: References: <7vu1b640gf.fsf@vlinux.voxelvision.no> Mime-version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Date: Wed, 04 Jun 2003 14:33:48 +0100 NNTP-Posting-Host: 80.195.75.181 X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news-binary.blueyonder.co.uk 1054733696 80.195.75.181 (Wed, 04 Jun 2003 13:34:56 GMT) NNTP-Posting-Date: Wed, 04 Jun 2003 13:34:56 GMT Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: archiver1.google.com comp.lang.ada:38594 Date: 2003-06-04T14:33:48+01:00 List-Id: On 4/6/03 11:10, in article 7vu1b640gf.fsf@vlinux.voxelvision.no, "Ole-Hjalmar Kristensen" wrote: > I think the difference between C++ and Ada is the compiler. I run both > through gcc, and got identical results. They are far from identical, AFAICS. You show the Ada code as being 10 times faster, at 0.200s user-mode CPU time for C++ matrix_c, 0.030s for Ada matrix_fun, and 0.010s for matrix_proc : > $ gnatmake -s -gnatp -O3 -funroll-loops matrix_fun > $ gnatmake -s -gnatp -O3 -funroll-loops matrix_proc > g++ -O3 -funroll-loops -o matrix_c matrix_c.cpp > > $ time matrix_c > user 0m0.200s > $ time matrix_proc > user 0m0.010s > $ time matrix_fun > user 0m0.030s -- Bill-Findlay chez blue-yonder.co.uk ("-" => "")