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-02 02:46:31 PST
Path:
archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: What is faster Ada or C?
Date: 02 Dec 2001 11:44:08 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <3c08314d$0$158$9b622d9e@news.freenet.de>
<9uau3a$79113$1@ID-25716.news.dfncis.de>
<3c093895$0$160$9b622d9e@news.freenet.de> <3C09B2D6.663C10BD@acm.org>
NNTP-Posting-Host: avelizy-103-1-4-5.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: wanadoo.fr 1007289990 26011 80.11.102.5 (2 Dec 2001 10:46:30 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 2 Dec 2001 10:46:30 GMT
Original-Sender: d:\home\obry@PASCAL
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
Xref: archiver1.google.com comp.lang.ada:17296
Date: 2001-12-02T10:46:30+00:00
List-Id:
Jeffrey Carter writes:
> Heiko Hamann wrote:
> >
> > Well, _any_ difference? Hey, this is unbelievable! The difference between
> > the program compiled with
> > standard options and the program compiled with -gnatp and -O3 is terrific.
> > The acceleration is about 70%! The new compilation needs only about 1/4 of
> > time the old one needed. I can't believe it.
> > The new program is about 1/5 smaller than the old one.
>
> Most of this difference is probably due to optimization. GNAT produces
> very poor code with no optimization. Even -O1 often makes a significant
Indeed. The -O0 (default option) of GCC/GNAT is doing just no optimization at
all. It even does not try to be smart :)
The first "real" optimization steps for GCC/GNAT is done at -02.
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"