You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect that this is due to how we switch to the program context in the new compile logic. The context is switched before the script is actually compiled, at which point the context's program is a zero length list of opcodes. Except that the cpu should be yielding at that point and not trying to execute instructions. So maybe I'm wrong about the source.
I think I've tracked down the real issue here. When compiling but not running the script, we still switch to the program context. So the solution should simply be to add a condition that doesn't switch to the program context if compiling to a file. I'll get a PR up tonight.
I'm trying to compile code in KOS to see if i can save some space.
test.ks
When I run
compile "test.ks" to "test.ksm".
I hit the following error.The text was updated successfully, but these errors were encountered: