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!f33g2000vbm.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: Mon, 10 Aug 2009 06:10:36 -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> 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 1249909836 32675 127.0.0.1 (10 Aug 2009 13:10:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 10 Aug 2009 13:10:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f33g2000vbm.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:7668 Date: 2009-08-10T06:10:36-07:00 List-Id: On Aug 9, 8:13=A0pm, Georg Bauhaus wrote: > Brian Drummond wrote: > >> The GNAT that comes with Ubuntu 9.04 (GCC 4.3.3) > >> produces storage errors where GNAT on Debian Lenny > >> (GCC 4.3.2) and GNAT 2007 on Windows (4.3.1) don't. > >> This happens with larger data structures. > > >> The workaround is to introduce an indirection ... (.-) > > > Default stack sizes may change between GCC versions and I've had troubl= e getting > > the stack size flags to work on some versions. > > Two new versions of regex-dna are available. One of them > performs both pattern matching and match-replace concurrently. > > Both are fixed WRT stack limits, using the heap now. > > I would be grateful if somebody who has access to a quad > core or single core machine could run these. =A0If you would > like to change the number of tasks look for the constant > Max_CPUs which is set to 4. > > Multitasking version:http://home.arcor.de/bauhaus/Ada/regexdna-multi.ada > > Just the fixed original:http://home.arcor.de/bauhaus/Ada/regexdna.ada The new regexdna.adb worked perfectly on 1 core and 4 core tests. (I'm using Debian Lenny.) regexdna.adb gave the right answers using both the new GNAT GPL (uses gcc 4.3.4) and the Debian Lenny GNAT. Actually, the old single-core regexdna.adb, (downloaded from the benchmark site, gnat # 3), also worked fine on both compilers (again on Debian Lenny). This older regexdna.adb uses GNAT.regpat. It ran 20% slower than the new GNAT.Spitbol version. Jonathan