home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / bsd / 11933 < prev    next >
Encoding:
Text File  |  1993-01-28  |  3.3 KB  |  85 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!udel!gatech!news.byu.edu!ux1!fcom.cc.utah.edu!cs.weber.edu!terry
  3. From: terry@cs.weber.edu (A Wizard of Earth C)
  4. Subject: Re: Scheme->C port report
  5. Message-ID: <1993Jan28.180931.16193@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: Weber State University  (Ogden, UT)
  8. References: <1993Jan28.020308.151@netcom.com>
  9. Date: Thu, 28 Jan 93 18:09:31 GMT
  10. Lines: 73
  11.  
  12. In article <1993Jan28.020308.151@netcom.com> thinman@netcom.com (Technically Sweet) writes:
  13. >Hi folks,
  14. >
  15. >I port the DEC Research Scheme-to-C compiler to bsd386.
  16. >Scheme is a miniature version of LISP; this implementation
  17. >has an interpreter and a compiler.  I use it a lot.
  18. >
  19. >I've got all of patchkit 0.2 installed except for the
  20. >3-digit ones which are all dicey anyway.
  21. >
  22. >Problem #1: vmparam.h is not in /usr/include/sys.
  23. >It's only off in the kernel sources.  s2c uses USRSTACK
  24. >from that file.
  25.  
  26. /usr/include/sys is a symbolic link to the kernel stuff or vice versa,
  27. depending on if you've manually changed your developement environment.
  28. If nothing else, manually link it back.
  29.  
  30. >Problem #2: gcvt() and its friends ecvt & fcvt aren't
  31. >in the math library.  These are double-to-string converters
  32. >with more formatting control than sprintf gives.
  33. >s2c runs on many platforms and they all have the ?cvt routines.
  34.  
  35. Several soloutions to this problem were posted here (comp.unix.bsd)
  36. and should be available as back articles, from a news archive, or are
  37. probably on ref.tfs.com.
  38.  
  39. >Problem #3: some of the floating point tests don't work.
  40. >They do work on my at&t 386 system v.3.2 system.
  41. >However, the latter is on a 486/33 and the bsd386 is
  42. >on a 386/20 with an IIT 387-alike.
  43.  
  44. I can't speak for your "IIT 387-alike"... however, there was an article
  45. posted on the 26th which dealt with the values in float.h.  This, in
  46. combination with 4-5 patches to deal with rounding bits, etc. combined
  47. should eliminate the FPU problems.  Someone is already working on a
  48. "definitive patch" for this (*not* in patchkit format!) and said they'd
  49. post when they were done.
  50.  
  51. >Problem #4: A memory allocation-thrasher program causes
  52. >the kernel to reboot.  
  53. >"vm_pagefault" gibberish - a few seconds of a message - reboot.
  54. >I don't know enough to gdb the kernel.
  55.  
  56. You'll have to learn enough to gdb the kernel or tell us enough that
  57. someone who can gdb the kernel can repeat it (no fast answer).
  58.  
  59. >And a question: Scheme does threads by copying around
  60. >versions of the program stack.  Has anyone done a nice
  61. >thread system for bsd386?  Don't mmap() and the signal
  62. >stack allow you to do this?
  63.  
  64. Without mmap, you can do it with a package called "sigsched".  I would
  65. not use signals for anything that had to be reliable until POSIX 1003.4,
  66. when they are supposed to queue.
  67.  
  68. >Comments?
  69.  
  70. If you can write a threads package, the world will beat a path to your
  71. door.
  72.  
  73.  
  74.                     Terry Lambert
  75.                     terry@icarus.weber.edu
  76.                     terry_lambert@novell.com
  77. ---
  78. Any opinions in this posting are my own and not those of my present
  79. or previous employers.
  80. -- 
  81. -------------------------------------------------------------------------------
  82.                                         "I have an 8 user poetic license" - me
  83.  Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
  84. -------------------------------------------------------------------------------
  85.