Basic SPIN optimization
kuisma
Posts: 134
I'd like PropTool to perform basic optimization
Things like
I'd very much prefer this not to render binary code never executed.
Things like
CON DEBUG_FOO = false [...] if DEBUG_FOO ... do something ...
I'd very much prefer this not to render binary code never executed.
Comments
As far as your suggestion, it could be done with #define and #if if that was added.
Dave
Right on!
But without a pre-processor, Parallax can even without changing the semantics gain some of the benefits by implementing this kind of trivial and non-destructive code optimization. Would this really take the fun out of Spin? What kind of side effects are you using to benefit from code behind unconditionally false conditions..? Maybe I'm missing some of the features of Spin..?
I'm running out of code space, and removing conditional debugging is not my idea of optimization.
Dave