home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d556 / scheme2c.lha / Scheme2C / AMIGA.Readme next >
Text File  |  1991-10-28  |  4KB  |  75 lines

  1.     Installation of the provided binaries
  2.  
  3. To install this software, copy scrt/objects.h to include:sc/objects.h.
  4. Then copy sci and scc from either 000/sc? (68000 binaries) or 020/sc?
  5. (68020/68881 binaries) to wherever in your path you would like them to
  6. live. You may then use scc and sci; see the various files in "docs" for
  7. more information.
  8.  
  9.     Changes for the Amiga
  10.  
  11. The "save-heap" and "restore-heap" facilities are probably not
  12. possible on the Amiga; I decided not to worry about them. As a result,
  13. the compiler re-initializes itself every time it is run. There is no
  14. rusage information available. Other than that, the scheme environment
  15. has not been changed. The "front end" portion of the compiler was
  16. modified to work with SAS C instead of a Unix C, and the "profiled"
  17. compile switch was disabled. Those are the only changes to the scheme
  18. sources in either the interpreter or the compiler that are anything
  19. but minor tweaks for SAS C.
  20.  
  21.     System requirements
  22.  
  23. 5.10a can be used as a target for the compiler. However, you will need
  24. SAS C 5.10b to build the system from scratch, as bugs in 5.10a cause
  25. the garbage collection code to fail. See "Building with 5.10a or a 3
  26. meg heap" for information on how to build it with 5.10a.  I suspect
  27. that any 5.10 can be used as a target for the compiler, but have only
  28. tested 5.10a and b.
  29.  
  30. The interpreter (sci) should run on a 1.5 Meg system, and the compiler
  31. (scc) on a 2 Meg system. However, I recommend at least a 2 meg heap
  32. for anything but trivial compiles, and 3 for anything serious.  All
  33. scheme files except scsc/transform.sc can be compiled with a 3 meg
  34. heap; transform.sc requires a 4 meg heap. This means you need (at
  35. least) a 5 meg amiga to rebuild the system from scratch. However, I've
  36. provided enough that it may not be required; see "Building with 5.10a
  37. or a 3 meg heap".
  38.  
  39.     Building the system from scratch
  40.  
  41. Build is a rexx script in the top-level directory. It will read the
  42. file name given as an argument, and process it in a manner similar to
  43. make, except on a line-by-line basis instead of the entire file. As a
  44. result, the scripts can be used as execute scripts directly. For more
  45. information on build, see the file "build.rexx".
  46.  
  47. To build from C source, use the build script "fromc". To build from
  48. scheme sources, use the build script "fromsc". If you have Rexx, the
  49. scripts will work directly. If you don't have rexx, the "build" in the
  50. last line of the fromsc script will need to be changed to an "execute".
  51.  
  52. To build the system, first cd to scrt, run sascoption to set the
  53. processor types correctly (the default is 68030/68881). If you are
  54. running 1.3, edit the select function at the end of cio.c. The second
  55. parameter WaitForChar should be 1, not 0, to avoid a bug in the pre
  56. 2.0 timer.device. Now execute "fromc" and get a cup of coffee. After
  57. the build, the file sc.lib should be copid to lib:, objects.h to
  58. include:sc, and sci to wherever on your path you wish it to live. Next
  59. cd to scsc, run sascoptions, and execute fromc again. Then copy Xscc
  60. to wherever you wish it to live as "scc." At this point, you can
  61. rebuild the system from scheme by execute "fromsc" in each directory
  62. instead of fromsc.
  63.  
  64.     Building with 5.10a or a 3 meg heap.
  65.  
  66. I've provided a copy of scrt/heap.o the one file that stumbles over
  67. the bugs in 5.10a.  By preserving this file, you can rebuild the
  68. system with 5.10a and the provided binaries. Make sure you do not
  69. overwrite scrt/heap.o until you have 5.10b. 
  70.  
  71. Likewise, I have provided a copy of scsc/transform.c. This is the only
  72. scheme file that cannot be compiled to C with a 3 meg heap. You can
  73. rebuild the system from scheme with this file and the provided
  74. binaries.
  75.