alt-vm-package-defs.scm 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ; Part of Scheme 48 1.9. See file COPYING for notices and license.
  2. ; Authors: Richard Kelsey, Jonathan Rees, David Frese, Mike Sperber
  3. ; These are used to compile the GC separately from the VM. It has new
  4. ; definitions of the VM structures that the GC uses, with all of the values
  5. ; defined as externals. We only need to define those values that the GC
  6. ; actually uses.
  7. (define-structure interpreter-gc interpreter-gc-interface
  8. (open prescheme)
  9. (begin
  10. (define s48-gc-root
  11. (external "s48_gc_root" (=> () null)))
  12. (define s48-post-gc-cleanup
  13. (external "s48_post_gc_cleanup" (=> (boolean boolean) null)))))
  14. (define-structure symbols (export s48-symbol-table)
  15. (open prescheme)
  16. (begin
  17. (define s48-symbol-table
  18. (external "s48_symbol_table" (=> () integer)))))
  19. (define-structure vmio (export s48-channels s48-channel-count)
  20. (open prescheme)
  21. (begin
  22. (define s48-channels
  23. (external "s48_channels" (=> () (^ integer))))
  24. (define s48-channel-count
  25. (external "s48_channel_count" (=> () integer)))))
  26. (define-structure shared-bindings-access shared-bindings-access-interface
  27. (open prescheme)
  28. (begin
  29. (define s48-imported-bindings
  30. (external "s48_imported_bindings" (=> () integer)))
  31. (define s48-exported-bindings
  32. (external "s48_exported_bindings" (=> () integer)))))