comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier@fakeaddress.nil>
Subject: Re: Interested about number crunching in Ada
Date: Sat, 18 Aug 2007 13:22:59 +0200
Date: 2007-08-18T13:22:59+02:00	[thread overview]
Message-ID: <46c6d665_4@news.bluewin.ch> (raw)
In-Reply-To: <gnqxi.438468$p47.22540@bgtnsc04-news.ops.worldnet.att.net>

anon:

> From GNAT Documentation:  The GIGI procedure is defined as Gnat-To-Gnu.

Bravo, *that's* the point: GNAT-to-GNU, not GNAT-to-C !
Thank you for finding yourself your mistakes ;-).
You are mistaken by the fact that in its early days, GCC was the "GNU C 
Compiler", but for a long time now it is the "GNU Compiler Collection".

> And if you dump each step of the GNAT to object as I stated (see 
> previous post) you can use a gcc or other gnu compilers to continue 
> compiling the code.  

You can also take any other compiler's sources and dump its tables, internal 
representations for optimizing; and usually commercial compilers (even if you 
don't have their sources) also offer to dump the assembler code beside the 
corresponding object code. The fact that the object code is spit by the 
compiler executable and not by as.exe makes absolutely no difference for the 
code itself; in compilation time it takes maybe a fraction of second more, 
that's all.
The steps: Source -> Internal representation (tables, tree or whatever) -> 
Machine code (eventually with 1-to-1 equivalent asm inbetween) are the same on 
every compiler. The fact that GNAT does it openly and via several executables 
gives you the impression that it is more complicated; it is just more 
convenient to do so in the context of the GNU toolchain. Conversely, if the 
same stuff was packed into a single .exe and there was no documentation about 
how it works, you would believe that it is simpler because it is all stuffed 
in a black box. It's a bit naive...

>> As for HP Ada, I don't care about politics, only about performance :-).
> 
> Well if HP's Ada performance is like TI's PASCAL.  It depends on how 
> the system is configured.  [...]

Well, that's the same for all systems. I happend some years ago to compare DEC 
Fortran and DEC Ada on the same AXP machine with some matrix crunching code. 
Both timings were very near, which was a compliment for the Ada compiler, but 
less a surprise when I heard that the compilers back-ends were the same (like 
for the GNU Compiler Collection ;-) ). That's it. And all this dramatic story 
about TI Pascal, politics, jobs and money seem very thrilling but (I'm afraid) 
a bit obscure to me...
______________________________________________________________
Gautier         -- http://www.mysunrise.ch/users/gdm/index.htm
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



  reply	other threads:[~2007-08-18 11:22 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-16  3:42 Interested about number crunching in Ada holst
2007-08-16  6:43 ` Nasser Abbasi
2007-08-16  9:16   ` Colin Paul Gloster
2007-08-17  9:43   ` Jerry
2007-08-16 11:17 ` anon
2007-08-16 18:59   ` Gautier
2007-08-17  4:44     ` anon
2007-08-17  7:24       ` Gautier
2007-08-17 23:42         ` anon
2007-08-18 11:22           ` Gautier [this message]
2007-08-18 11:40           ` Markus E.L. 2
2007-08-20 22:31             ` To Markus anon
2007-08-17  8:23       ` Interested about number crunching in Ada Markus E.L. 2
2007-08-17  9:01       ` Stuart
2007-08-17  9:39         ` Martin Krischik
2007-08-18  0:47         ` anon
2007-08-18 11:58           ` Markus E.L. 2
2007-08-19  6:43             ` anon
2007-08-19 16:14               ` Markus E.L. 2
2007-08-19 16:23               ` Markus E.L. 2
2007-08-20  8:46           ` Stuart
2007-08-21  1:06             ` Randy Brukardt
2007-08-21  1:28             ` Gary Scott
2007-08-21  8:14               ` History of Ada - was " Stuart
2007-08-22  7:13                 ` anon
2007-08-23 11:24                   ` Stuart
2007-08-23 21:51                     ` Gautier
2007-08-24 13:04                       ` History of Ada - and about the NYU DOS version anon
2007-08-24 16:25                         ` Georg Bauhaus
2007-08-25 11:49                           ` History of Ada - to answer your question anon
2007-11-02 13:51                         ` History of Ada - and about the NYU DOS version adaworks
2007-08-17  1:24   ` Interested about number crunching in Ada Gary Scott
2007-08-16 22:55 ` Jerry
2007-08-17  9:21 ` Nasser Abbasi
2007-08-17  9:52   ` Jerry
2007-08-17 14:35     ` Gautier
replies disabled

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