comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jeffrey.carter@boeing.com>
Subject: Re: comparing gnat/Ada95 and g77
Date: Thu, 14 Mar 2002 16:40:18 GMT
Date: 2002-03-14T16:40:18+00:00	[thread overview]
Message-ID: <3C90D272.923AD8E5@boeing.com> (raw)
In-Reply-To: a6prk9$jhc$1@snipp.uninett.no

Reinert Korsnes wrote:
> 
Ada:
>    type Real is Digits 9;

FORTRAN:
>       real x

How big is a FORTRAN real? On a typical 32-bit machine, a 1-word
(single-precision) floating-point number is "digits 6". "digits 9" would
use a 2-word (double-precision) implementation. This may bias the timing
in favor of FORTRAN.

The trig functions in Ada are pickier than those in other languages; for
a fair comparison, you have to use exactly the same functionality in
both languages.

Also, Text_IO tends to be "heavier" than the IO in other languages.

-- 
Jeffrey Carter



      parent reply	other threads:[~2002-03-14 16:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-14  9:47 comparing gnat/Ada95 and g77 Reinert Korsnes
2002-03-14 10:37 ` John McCabe
2002-03-14 11:00   ` Preben Randhol
2002-03-15 10:44   ` Reinert Korsnes
2002-03-15 12:14     ` John McCabe
2002-03-15 17:53       ` Georg Bauhaus
2002-03-16 14:00     ` Gautier
2002-03-14 10:58 ` Martin Dowie
2002-03-14 11:04   ` chris.danx
2002-03-14 11:07     ` Bobby D. Bryant
2002-03-14 11:41     ` David C. Hoos, Sr.
2002-03-14 11:06   ` Preben Randhol
2002-03-14 16:43     ` Jeffrey Carter
2002-03-14 11:14 ` Gerald Kasner
2002-03-14 12:59   ` Gary Scott
2002-03-14 13:17     ` Jean-Marc Bourguet
2002-03-15  0:52       ` Gary Scott
2002-03-14 16:19     ` Dan Andreatta
2002-03-15  9:35       ` Gerald Kasner
2002-03-14 17:31   ` Toshitaka Kumano
2002-03-14 16:40 ` Jeffrey Carter [this message]
replies disabled

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