ps-as-scm.texi 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. @node Running Pre-Scheme as Scheme
  2. @section Running Pre-Scheme as Scheme
  3. @stindex prescheme
  4. @stindex ps-memory
  5. @stindex ps-receive
  6. @stindex ps-record-types
  7. @stindex ps-flonums
  8. To facilitate the operation of Pre-Scheme systems within a high-level
  9. Scheme development environment, Scheme48 simply defines the
  10. @code{prescheme}, @code{ps-memory}, @code{ps-record-types},
  11. @code{ps-flonums}, and @code{ps-receive} structures in terms of Scheme;
  12. Pre-Scheme structures can be loaded as regular Scheme structures
  13. because of this. Those structures and the interfaces they implement
  14. are defined in the files @file{scheme/prescheme/interface.scm} and
  15. @file{scheme/prescheme/package-defs.scm} from the main Scheme48
  16. distribution; simply load these files into the @embedref{Module
  17. commands, config package} before loading any Pre-Scheme configuration
  18. files.
  19. The Pre-Scheme emulation layer in Scheme has some shortcomings:
  20. @itemize
  21. @item No more than sixteen megabytes can be allocated at once.
  22. @item More than thirty-two or sixty-four or so allocations result in
  23. addresses overflowing bignums, which deallocations does not affect.
  24. @item Flonum memory access is unimplemented. (Flonum arithmetic works,
  25. though.)
  26. @item The layer is very slow.
  27. @end itemize