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,1d575f572a099528
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2001-12-10 09:47:22 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!proxad.net!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: What is faster Ada or C?
Date: 10 Dec 2001 18:44:53 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <3c08314d$0$158$9b622d9e@news.freenet.de>
<9v2joq$ra2$1@news.btv.ibm.com>
NNTP-Posting-Host: avelizy-103-1-4-23.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: wanadoo.fr 1008006441 5669 80.11.102.23 (10 Dec 2001 17:47:21 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 10 Dec 2001 17:47:21 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
Xref: archiver1.google.com comp.lang.ada:17699
Date: 2001-12-10T17:47:21+00:00
List-Id:
pontius@btv.MBI.com.invalid (Dale Pontius) writes:
> In article ,
> aaro@iki.fi (Aaro Koskinen) writes:
> ...
> > (Also, I would imagine that with Ada's strong typing, the compiler can
> > do better optimizations than an average C compiler. However, I don't
> > have any evidence for this...)
>
> I've always heard and felt this, too. However I wonder if theory and
> practice unfortunately differ here, due to the overwhelming popularity
> of C and its ilk.
>
> Take gnat as an example. It's a front-end for gcc, which is itself
> developed primarily in C. So granting that strong typing allows better
> optimization, is the back-end smart enough to use the extra information?
Well GNAT backend is GCC backend heavily patched!
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"