Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
791B

  1. Stable wordrefs are there for more complicated reasons. When
  2. cross-compiling Collapse OS, we use immediate words from the
  3. host and some of them compile wordrefs (IF compiles (?br),
  4. LOOP compiles (loop), etc.). These compiled wordref need to
  5. be stable across binaries, so they're part of the stable ABI.
  6. Another layer of complexity is the fact that some binaries
  7. don't begin at offset 0. In that case, the stable ABI doesn't
  8. begin at 0 either. The EXECUTE word has a special handling of
  9. those case where any wordref < 0x100 has the binary offset
  10. applied to it.
  11. But that's not the end of our problems. If an offsetted binary
  12. cross compiles a binary with a different offset, stable ABI
  13. references will be > 0x100 and be broken.
  14. (cont.)