comp.lang.ada
 help / color / mirror / Atom feed
From: David Starner <dvdeug@x8b4e53cd.dhcp.okstate.edu>
Subject: Re: naval systems
Date: 27 Feb 2002 02:28:16 GMT
Date: 2002-02-27T02:28:16+00:00	[thread overview]
Message-ID: <a5hg80$8a22@news.cis.okstate.edu> (raw)
In-Reply-To: VuSe8.61199$K14.517462149@newssvr30.news.prodigy.com

On Tue, 26 Feb 2002 20:46:45 GMT, Pat Rogers <progers@classwide.com> wrote:
> Of course that is what I mean.  Therefore, the stand-alone assertion that "GNAT
> is noticably slower than gcc" is confusing.   Does he mean that the front-end
> for GNAT is slower than the front-end for C?  

I mean that compiling a program with gnat takes longer than a comparable
program with the C compiler. Both in uncontrolled experiance and tests.

> Does he mean that the end-to-end
> performance of any Ada compiler is slower than any C compiler, as supported by a
> comparison of supplying C code and Ada code to gcc?  

Of course not. That's absurd. Nice strawman, though.

> Did this Ada code and C
> code do the same thing?  

Of course.

>What switches did he use for both?

None, for the tests.

> One can just as easily assert that -- with comparable (not identical) switches
> and with the code doing the same thing -- most of the time there won't be a
> significant difference in either compile-time or run-time.  Pathological cases
> in either direction can no doubt be constructed.  So what?

One can easily assert that. One can easily assert pretty much anything.
But if it's to believed, it should be backed up by evidence or it's just
noise.

Given both the null program and Hello, World!, the C compiler took about
1/3 of the time that GNAT did, with no options and with -O2 -g. I
generated a 32,002 line program that had 32,000 randomly pointing (but
the same for the C and Ada program) goto statements in it, and told it
to write to assembly only, with no optimization. The C compiler took 4
seconds. GNAT took 7 minutes to tell me I was missing a semicolon. After
fixing that semicolon, it took 6 minutes 59 seconds to produce assembly
with no significant difference.

The last case is a bit pathological, but it is a data point. In all
cases I tried the C compiler was significantly faster than GNAT. If you
want to argue that there won't be a significant difference, please show
test cases and numbers, instead of just making assertions.

I argue not that the speed matters, merely that there is a difference in
speed.

(BTW: The example solution in Graphics was in C++, and I hand converted
it to Ada. Compiling it with G++ took about 40% longer than with GNAT. I
converted nested vector classes to arrays of pointers, though, which
probably made a difference.)
 
>> If one means gcc to mean the C/C++ compiler only, then of course it is not the
>> same -- they compile different languages.
> 
> Clearly. However, that is an obsolete definition, given that GCC is now the "GNU
> Compiler Collection".

Ah, but you're assuming that Unix acronyms are case-insensitive. They
aren't - GCC is unambigiously the "GNU Compiler Collection", but gcc may
be "GNU C Compiler", or the driver program that merely runs the
compilers, or occasionally the same as GCC. 

-- 
David Starner - starner@okstate.edu
What we've got is a blue-light special on truth. It's the hottest thing 
with the youth. -- Information Society, "Peace and Love, Inc."



  parent reply	other threads:[~2002-02-27  2:28 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3C74E519.3F5349C4@baesystems.com>
     [not found] ` <20020221205157.05542.00000012@mb-cm.news.cs.com>
2002-02-22 12:19   ` naval systems David Gillon
2002-02-22 14:55     ` Marin David Condic
2002-02-23  5:54       ` David Starner
2002-02-25 15:05         ` Marin David Condic
2002-02-26  2:34           ` Larry Kilgallen
2002-02-26 17:44           ` David Starner
2002-02-26 19:49             ` Pat Rogers
2002-02-26 19:55               ` Ray Blaak
2002-02-26 20:46                 ` Pat Rogers
2002-02-26 22:41                   ` Ray Blaak
2002-02-27  0:02                     ` Pat Rogers
2002-02-27  5:01                       ` David Starner
2002-02-27  9:38                         ` Jean-Pierre Rosen
2002-02-27 19:48                         ` compiler benchmark comparisons (was: naval systems) Wes Groleau
2002-02-27 21:51                           ` Pat Rogers
2002-03-01  2:04                             ` David Starner
2002-03-01  4:06                               ` Pat Rogers
2002-02-27 23:53                           ` Gary Barnes
2002-02-28  2:19                             ` Dan Andreatta
2002-02-28 10:04                               ` Jerry van Dijk
2002-02-28 13:35                               ` compiler benchmark comparisons Georg Bauhaus
2002-02-28 18:12                                 ` Dan Andreatta
2002-03-01  5:07                                   ` Robert Dewar
2002-03-01 16:43                                     ` Dan Andreatta
2002-03-01 23:17                                     ` Dan Andreatta
2002-03-01 23:40                                       ` tmoran
2002-02-28 14:18                               ` compiler benchmark comparisons (was: naval systems) Wes Groleau
2002-02-28 14:31                               ` Ted Dennison
2002-02-28 18:33                                 ` Dan Andreatta
2002-02-28 21:14                                 ` Wes Groleau
2002-02-28 14:01                             ` Wes Groleau
2002-03-01 22:01                               ` Randy Brukardt
2002-02-28 15:58                             ` Larry Kilgallen
     [not found]                             ` <338040f8.0202271819.373f733a@Organization: LJK Software <TgAW8WWqYgP5@eisner.encompasserve.org>
2002-03-01 19:29                               ` Robert Dewar
2002-03-02 11:12                                 ` Pascal Obry
2002-03-02 19:49                                   ` Richard Riehle
     [not found]                               ` <5ee5b646.0203011129.1bdbac56@po <ug03ji5ow.fsf@wanadoo.fr>
2002-03-02 18:20                                 ` Simon Wright
2002-02-27  2:28                   ` David Starner [this message]
2002-02-27 21:44                     ` naval systems Pat Rogers
2002-03-01  2:59                       ` David Starner
2002-03-01 15:33                         ` Pat Rogers
2002-03-01 17:22                       ` Jeffrey Carter
2002-03-03  5:21                         ` David Starner
2002-02-26 22:40                 ` Pascal Obry
2002-02-27  0:42               ` David Starner
2002-02-23 19:18       ` John R. Strohm
2002-02-23 18:36         ` martin.m.dowie
2002-02-25 15:10         ` Marin David Condic
2002-02-28 16:33     ` tony gair
2002-02-28 17:33       ` David Gillon
2002-02-28 21:18       ` Wes Groleau
2002-03-01 17:31       ` Boeing 777 (WAS: naval systems) Simon Pilgrim
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox