Login
Back to forumSee the full topicGo to last reply

Posted By

Csabo
on 2024-12-25
15:38:32
 Re: Preic BASIC source pre-processing tool

Optimizing BASIC code in general would be great IMHO (regardless of what the code was written in). E.g. replace all most used variables with one-letter ones (depending on usage count, if there are more than 26, combine lines and remove REM statements (such programs already exists, but still), move subroutines around (exactly as gerliczer suggested). GOTO and GOSUB are particularly slow: since there's no line number -> memory location table, the interpreter has to traverse through the entire code to find the lines. Therefore the further in the code the destination lines are, the slower the execution.


Back to top


Copyright © Plus/4 World Team, 2001-2025. Support Plus/4 World on Patreon