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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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-7-bit Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sun, 09 Aug 2009 21:13:10 +0200 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna) References: <4a776a94$0$31878$9b4e6d93@newsspool3.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4a7f1fc5$0$31344$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 09 Aug 2009 21:13:09 CEST NNTP-Posting-Host: f6cc4513.newsspool4.arcor-online.net X-Trace: DXC=Lf`1[PP3mED6PJ?[X6JIXE4IUK 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 trouble 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. If 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