[Shootout-list] Spellcheck Ada or benchmark script error ?

Brent Fulgham bfulg@pacbell.net
Tue, 26 Apr 2005 22:34:51 -0700


On Apr 26, 2005, at 3:10 PM, David Sauvage wrote:

> i'm trying to know more about the shootout spellcheck Ada 95 GNAT
> Error, it just work well for severals people for N=1, so we are
> wondering if it could be a shootout benchmark script problem for N>1 ?
>
> i would be happy to help solve this problem but i did not find stuff
> talking about the shootout benchmark script. If i could be of any help
>
Maybe it's a problem on my machine.

I build it like so:

BUILD COMMANDS FOR: spellcheck.gnat

Mon Apr 18 17:05:06 PDT 2005

cp /opt/shootout/shootout/bench/spellcheck/spellcheck.gnat 
spellcheck.ada
/usr/bin/gnatchop -w spellcheck.ada
splitting spellcheck.ada into:
    dictionnary_mgr.adb
    dictionnary_mgr.ads
    spellcheck.adb
/usr/bin/gnatmake -gnatp -Wall -O3 -fomit-frame-pointer -funroll-loops  
-f spellcheck.adb -o spellcheck.gnat_run
gcc-3.4 -c -gnatp -Wall -O3 -fomit-frame-pointer -funroll-loops 
spellcheck.adb
gcc-3.4 -c -gnatp -Wall -O3 -fomit-frame-pointer -funroll-loops 
dictionnary_mgr.adb
gnatbind -x spellcheck.ali
gnatlink spellcheck.ali -o spellcheck.gnat_run
rm spellcheck.ada

The output from this operation does not seem to work right, even for 
N=1.  A simple test is just to take the input file from the website 
(http://shootout.alioth.debian.org/website/desc/spellcheck-input.txt)  
The input dictionary is at 
http://shootout.alioth.debian.org/website/desc/spellcheck-dict.txt.

If I run like so:

cp spellcheck-dict.txt Usr.Dict.Words

spellcheck.gnat_run < spellcheck-input.txt

I get all words as output (meaning nothing is in the dictionary).  I 
see the same behavior for N=4.

My guess would be some kind of line-ending problem, either in reading 
the dictionary, or in parsing the input file from standard input.

-Brent