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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,da39df064d0b18d7 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!f37g2000yqn.googlegroups.com!not-for-mail From: jonathan Newsgroups: comp.lang.ada Subject: Re: GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna) Date: Wed, 12 Aug 2009 09:37:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4a776a94$0$31878$9b4e6d93@newsspool3.arcor-online.net> <4a7f1fc5$0$31344$9b4e6d93@newsspool4.arcor-online.net> <9adb4985-582c-4cbf-906c-3afa7dcd31f6@g1g2000vbr.googlegroups.com> <4a80bae9$0$31866$9b4e6d93@newsspool3.arcor-online.net> <1aec6b98-6c73-43cf-a54f-0b0bc844aeee@w6g2000yqw.googlegroups.com> NNTP-Posting-Host: 143.117.23.233 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1250095075 12368 127.0.0.1 (12 Aug 2009 16:37:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 12 Aug 2009 16:37:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f37g2000yqn.googlegroups.com; posting-host=143.117.23.233; posting-account=Jzt5lQoAAAB4PhTgRLOPGuTLd_K1LY-C User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.12) Gecko/2009072220 Iceweasel/3.0.6 (Debian-3.0.6-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7701 Date: 2009-08-12T09:37:55-07:00 List-Id: On Aug 12, 10:32=A0am, Ludovic Brenta 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 =A0 =A0 =A0-W -Wall -gnatpg =A0g-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