It is working now. I'm not sure what the difference between my build
environment at work and at home is, but I have it working at home
(Ubuntu 7.04/i386) now. I should be able to get it to work at work
(RHEL 4/i386) too.
Here is what I did at home:
Download fpu_19.zip, uncompress (I used file-roller)
Install build-essential package (I was surprised Ubuntu can't compile
a C program be default)
Modify path so that current directory is included (in bash: PATH=.:$PATH)
cd to fpu_v19/test_bench/SoftFloat/softfloat/bits32/
cp -r 386-Win32-GCC 386-Linux-GCC
cd 386-Linux-GCC
gedit Makefile
remove the .exe after EXE =
back to shell
make
I do get warnings from make which I ignore
gcc -c -o softfloat.o -I. -I.. -I- -O2 ../softfloat.c
cc1: note: obsolete option -I- used, please use -iquote instead
../softfloat.c: In function `print_roundmode':
../softfloat.c:882: warning: incompatible implicit declaration of
built-in function `printf'
../softfloat.c: In function `float32_add':
../softfloat.c:923: warning: incompatible implicit declaration of
built-in function `printf'
../softfloat.c: In function `float32_sub':
../softfloat.c:966: warning: incompatible implicit declaration of
built-in function `printf'
../softfloat.c: In function `float32_mul':
../softfloat.c:1045: warning: incompatible implicit declaration of
built-in function `printf'
../softfloat.c: In function `float32_div':
../softfloat.c:1135: warning: incompatible implicit declaration of
built-in function `printf'
../softfloat.c: In function `float32_sqrt':
../softfloat.c:1296: warning: incompatible implicit declaration of
built-in function `printf'
gcc -c -o timesoftfloat.o -I. -I.. -I- -O2 ../timesoftfloat.c
cc1: note: obsolete option -I- used, please use -iquote instead
gcc -o timesoftfloat softfloat.o timesoftfloat.o
cp timesoftfloat ../../../..
cd ../../../..
chmod +x maketest.bat
vi maketest.bat
eliminate ^M at the end of every line (I hate Windows)
maketest.bat
vi testcases.txt (a very big file - which I don't know is correct yet,
but it looks reasonable)
Dara Parsavand
PS: if you try to use the existing executable which presumably runs
under Windows, you get:
run-detectors: unable to find an interpreter for ./timesoftfloat