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,e7e6e919cef50811 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-14 08:56:35 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newspeer.radix.net!uunet!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: comparing gnat/Ada95 and g77 X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3C90D272.923AD8E5@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: Mime-Version: 1.0 Date: Thu, 14 Mar 2002 16:40:18 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:21239 Date: 2002-03-14T16:40:18+00:00 List-Id: 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