-
At the moment I have these:
Is there way to make these so they execute without overhead? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For words that can themselves be inlined you can do, say,
(I assume you accidentally swapped Note that this cannot be done with words that are not inlinable, because calls to non-inlined words are inherently non-inlinable due to calls either PC-relative or calls require loading an address from a constant pool beforehand (which itself is PC-relative). In many cases zeptoforth is smart enough to ignore [inlined] if a word cannot be inlined, it should be noted, but if your code crashes instead, please let me know. |
Beta Was this translation helpful? Give feedback.
For words that can themselves be inlined you can do, say,
(I assume you accidentally swapped
ei
anddi
.)Note that this cannot be done with words that are not inlinable, because calls to non-inlined words are inherently non-inlinable due to calls either PC-relative or calls require loading an address from a constant pool beforehand (which itself is PC-relative). In many cases zeptoforth is smart enough to ignore [inlined] if a word cannot be inlined, it should be noted, but if your code crashes instead, …