home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 19968 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.5 KB  |  44 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!umn.edu!doug.cae.wisc.edu!castlab!spy
  3. From: spy@castlab.uucp (Mark W. Spychalla)
  4. Subject: floating point exceptions
  5. Organization: University of Wisconsin- Madison
  6. Date: 11 Dec 92 14:06:10 CST
  7. Message-ID: <1992Dec11.140610.5516@doug.cae.wisc.edu>
  8. Lines: 34
  9.  
  10.  
  11. Hello,
  12.  
  13.   I have had many problems with the floating point under Linux as well.  I have 
  14. been running the first SLS distribution (linux 0.96 I believe) with Linux extfs
  15. and X windows for quite some time on a V-com DX2/66 with 8 Meg RAM, 160 Meg
  16. Disk Space, and ET4000 based local bus video card.  I have been EXTREMELY
  17. pleased with my Linux performance so far for the animation/rendering
  18. applications I have been developing.
  19.   
  20. I have done the following kludges to work around my float problems:
  21.  
  22. 1)  Ignore floating point error signals (!!!) by using
  23.  
  24.    #include <signal.h>
  25.    ...
  26.    main()
  27.    {
  28.    signal(SIGFPE, SIG_IGN);
  29.    ...
  30.    }
  31.  
  32. 2) Compile with the soft floating point libraries instead of the default
  33.    libraries they seem to be of better quality than the default ones.
  34.  
  35.    gcc -msoft-float -o foo foo.c -lsoft
  36.        ^^^^^^^^^^^^              ^^^^^^    
  37.  
  38. I know I should get around to updating my Linux version one of these days but
  39. I am holding out until the TCP/IP & NFS get a bit more stable.
  40.  
  41. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  42.    Mark Spychalla (spy@castlab.engr.wisc.edu)
  43. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  44.