Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Minimizing code size on Picomite
Author | Message | ||||
Dinosaur Guru Joined: 12/08/2011 Location: AustraliaPosts: 311 |
Hi All I seem to recall reading (but now can't find it) that there is a way of removing comments and spaces to reduce the size of the interpreted file. I am sure in the next few weeks I am going to run out of memory or Flash space for my code. However retaining the original file with all the comments and formatting correct is essential. So, you would only copy the "cleansed" file to the picomite to run. Have I lost it ??? If so, any suggestions on saving space appreciated. Regards Hervey Bay Qld. |
||||
vegipete Guru Joined: 29/01/2013 Location: CanadaPosts: 1109 |
Look at the "autosave" command as used with a terminal program. Visit Vegipete's *Mite Library for cool programs. |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
MMEdit will do it. Bill Keep safe. Live long and prosper. |
||||
Dinosaur Guru Joined: 12/08/2011 Location: AustraliaPosts: 311 |
Hi All Thanks for the replies. So, are you saying that when I send the .bas file to the Picomite with MMCC, it will "optimize" the code ? Regards Hervey Bay Qld. |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6099 |
No If you manually transfer a file using AUTOSAVE CRUNCH the bas file gets crunched as it is stored on the 'mite An alternative is to crunch within MMEdit In the Program menu it is safe to try "Crunch" It will open anew tab with a crunched version which you can then upload. From the MMEdit Help MMCC does not make use of the CRUNCH option for AUTOSAVE. Neither way will "optimize" your code, just remove white space etc. Jim VK7JH MMedit MMBasic Help |
||||
Dinosaur Guru Joined: 12/08/2011 Location: AustraliaPosts: 311 |
Hi All Thanks Jim, that clears that up. Regards Hervey Bay Qld. |
||||
Print this page |