Mirror of CollapseOS
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

17 wiersze
634B

  1. Compilation vs meta-compilation
  2. Compilation vs meta-compilation. When you compile a word with
  3. "[COMPILE] foo", its straightforward: It writes down to HERE
  4. wither the address of the word or a number literal.
  5. When you *meta* compile, it's a bit more mind blowing. It
  6. fetches the address of the word specified by the caller, then
  7. writes that number as a literal, followed by a reference to
  8. ",".
  9. Example: ": foo [COMPILE] bar;" is the equivalent of ": foo bar
  10. ;" if bar is not an immediate. However, ": foo COMPILE bar ;"
  11. is the equivalent of ": foo ['] bar , ;". Got it?
  12. Meta-compile only works with real words, not number literals.