Search the web
Sign In
New User? Sign Up
32bit_fpu · 32bit FPU
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Has anyone compiled SoftFloat for 386-Linux-GCC?   Message List  
Reply | Forward Message #102 of 148 |
Re: Has anyone compiled SoftFloat for 386-Linux-GCC?

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





Wed Jun 20, 2007 7:08 am

dara.parsavand
Offline Offline
Send Email Send Email

Forward
Message #102 of 148 |
Expand Messages Author Sort by Date

I've gotten the fpu-100 core to work using Modeltech (on Linux), but I haven't been able to get the included test-bench to work. This because of my limited...
dara.parsavand
Offline Send Email
Jun 20, 2007
2:01 am

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....
dara.parsavand
Offline Send Email
Jun 20, 2007
7:09 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help