comp.lang.ada
 help / color / mirror / Atom feed
From: jonathan <johnscpg@googlemail.com>
Subject: Re: GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna)
Date: Wed, 12 Aug 2009 09:37:55 -0700 (PDT)
Date: 2009-08-12T09:37:55-07:00	[thread overview]
Message-ID: <f85ec544-7d6f-4ce8-88b4-23d1c6ecb1e5@f37g2000yqn.googlegroups.com> (raw)
In-Reply-To: d0d7dc39-fa79-44f3-8096-8a2a67a5481a@b15g2000yqd.googlegroups.com

On Aug 12, 10:32 am, Ludovic Brenta <ludo...@ludovic-brenta.org>
wrote:

> If you use the amd64 port of Debian Lenny, your compiler is optimized
> for 64-bit. However, I use the default options for the library. For
> example, the i386 (actually i486) build daemon compiled g-spipat.adb
> thus:
>
> /build/buildd-gnat-4.3_4.3.2-1.1-i386-3dUv7K/gnat-4.3-4.3.2/build/./
> gcc/xgcc -B/build/buildd-gnat-4.3_4.3.2-1.1-i386-3dUv7K/gnat-4.3-4.3.2/
> build/./gcc/ -B/usr/i486-linux-gnu/bin/ -B/usr/i486-linux-gnu/lib/ -
> isystem /usr/i486-linux-gnu/include -isystem /usr/i486-linux-gnu/sys-
> include -c -g -O2      -W -Wall -gnatpg  g-spipat.adb -o g-spipat.o
>
> If anyone is interested, I can try to compile with -O3 -funroll-all-
> loops -gnatpg instead.
>

Using the default options for g-spipat.adb sounds reasonable to me.
The user can recompile with -a and with make-benchmark-happy flags,
if he wants to experiment. I doubt that the benchmarking happy-flags
are the safest way to go. (And -funroll-all-loops hardly matters:
seems like 3% improvement. (I finally got around to checking this;)
The
gnatn helped 8%, which was more than I expected.)

Jonathan






      reply	other threads:[~2009-08-12 16:37 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03 22:54 GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna) Georg Bauhaus
2009-08-03 22:56 ` Georg Bauhaus
2009-08-04  7:50   ` Ludovic Brenta
2009-08-04  9:17     ` Georg Bauhaus
2009-08-04  9:58       ` Vadim Godunko
2009-08-04 10:44         ` Georg Bauhaus
2009-08-04 12:30           ` Vadim Godunko
2009-08-04 14:15             ` Georg Bauhaus
2009-08-04 22:20         ` Egil
2009-08-04 15:38       ` Robert A Duff
2009-08-04 11:59 ` Brian Drummond
2009-08-04 14:18   ` Georg Bauhaus
2009-08-09 19:13   ` Georg Bauhaus
2009-08-10 13:10     ` jonathan
2009-08-10 20:12     ` jonathan
2009-08-10 20:29       ` Ludovic Brenta
2009-08-10 23:34       ` Georg Bauhaus
2009-08-11 20:02         ` jonathan
2009-08-11 21:19           ` jonathan
2009-08-11 21:38           ` Georg Bauhaus
2009-08-11  0:27       ` Georg Bauhaus
2009-08-11 19:05         ` jonathan
2009-08-12  9:32           ` Ludovic Brenta
2009-08-12 16:37             ` jonathan [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