2020-05-12 12:23:26 +10:00
|
|
|
2. Immediate words that have been cross compiled *cannot* be
|
|
|
|
used. Only immediates from the host system can be used.
|
|
|
|
3. If an immediate word compiles words, it can only be words
|
|
|
|
that are part of the stable ABI.
|
2020-04-24 05:14:14 +10:00
|
|
|
|
2020-05-12 12:23:26 +10:00
|
|
|
All of this is because when cross compiling, all atom ref-
|
|
|
|
erences are offsetted to the target system and are thus
|
|
|
|
unusable directly. For the same reason, any reference to a word
|
|
|
|
in the host system will obviously be wrong in the target
|
|
|
|
system. More details in B260.
|
2020-04-24 05:14:14 +10:00
|
|
|
|
2020-05-12 21:21:34 +10:00
|
|
|
These rules result in some practicals do's and dont's:
|
|
|
|
|
2020-05-13 00:37:24 +10:00
|
|
|
1. No LEAVE in DO..LOOP
|
2020-05-12 21:21:34 +10:00
|
|
|
|
|
|
|
(cont.)
|