From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Is there an Ada compiler whose Ada.Numerics.Generic_Elementary_Functions.Log(Base=>10, X=>variable) is efficient?
Date: Mon, 15 Feb 2010 08:02:08 -0500
Date: 2010-02-15T08:02:08-05:00 [thread overview]
Message-ID: <nospam-E9EB83.08020815022010@news.aioe.org> (raw)
In-Reply-To: alpine.LNX.2.00.1002151055530.17315@Bluewhite64.example.net
In article
<alpine.LNX.2.00.1002151055530.17315@Bluewhite64.example.net>,
Colin Paul Gloster <Colin_Paul_Gloster@ACM.org> wrote:
> gnatmake -O3 logarithmic_work_in_Ada.adb -o
> logarithmic_work_in_Ada_compiled_by_GNAT
>
> time ./logarithmic_work_in_Ada_compiled_by_GNAT
> 6.34086408536266E+08
>
> real 1m33.338s
> user 1m33.338s
> sys 0m0.000s
I get a different answer: 698970 = 1000000 * (log10(50) - 1).
$ make clean logada ; time ./logada
rm -f *.o *.ali b~* core logada
gnatmake logada -cargs -O3 -gnatwa -bargs -shared -largs -dead_strip
gcc -c -O3 -gnatwa logada.adb
gnatbind -shared -x logada.ali
gnatlink logada.ali -shared-libgcc -dead_strip
6.98970004334243E+05
real 0m0.138s
user 0m0.136s
sys 0m0.002s
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
next prev parent reply other threads:[~2010-02-15 13:02 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-15 10:58 Is there an Ada compiler whose Ada.Numerics.Generic_Elementary_Functions.Log(Base=>10, X=>variable) is efficient? Colin Paul Gloster
2010-02-15 13:02 ` John B. Matthews [this message]
2010-02-15 14:17 ` Colin Paul Gloster
2010-02-15 17:19 ` John B. Matthews
2010-02-15 14:54 ` jonathan
2010-02-15 15:04 ` jonathan
2010-02-15 19:50 ` sjw
2010-02-16 16:50 ` Colin Paul Gloster
2010-02-15 18:26 ` (see below)
2010-02-15 18:51 ` jonathan
2010-02-15 20:00 ` sjw
2010-02-15 21:17 ` jonathan
2010-02-16 0:09 ` jonathan
2010-02-16 17:33 ` Colin Paul Gloster
2010-02-24 10:07 ` Colin Paul Gloster
2010-02-15 23:04 ` Jeffrey R. Carter
2010-02-16 14:54 ` Colin Paul Gloster
2010-02-16 15:24 ` Colin Paul Gloster
2010-02-16 19:01 ` Jeffrey R. Carter
2010-02-17 10:25 ` Colin Paul Gloster
2010-02-15 23:20 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox