Managing large programs

Code tips and tricks for beginners
User avatar
cicciocb
Site Admin
Posts: 2194
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 470 times
Been thanked: 1461 times
Contact:

Re: Managing large programs

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Mon Jul 01, 2024 12:20 am Thank You Francesco.

Perhaps if this is introduced as a new firmware for modules with larger flash.
Worning provided to users upgrading to this new firmware that their old filesystem will be lost?
I would be totally happy with something like this.
The first approach is to use the internal flash memory as a storage place for the program; in this case I must see how to implement as this will also require a change on the online flasher.

Probably a much simpler way can be done using multiple files that the editor will just save on the module as a single file, completely transparent for the user. Must see what can be done with the actual editor or if is time to select another one (big work :roll: ).

In this case the update will require the use of multiple tabs on the editor and a kind of "import .....bas" command inside the main program. The module will simply import, at load time, the all the "imported" libraries as a unique program running in memory.
As the sum of the program plus the libraries risk to be huge, this explains why I would like to use the internal flash for the program recovering the RAM for other usages.
User avatar
Electroguard
Posts: 945
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 310 times
Been thanked: 352 times

Re: Managing large programs

Post by Electroguard »

Probably a much simpler way can be done using multiple files that the editor will just save on the module as a single file, completely transparent for the user. Must see what can be done with the actual editor or if is time to select another one (big work :roll: ).
MMEDIT which peridot mentioned in this post... [Local Link Removed for Guests]
... is not web-based and does not directly edit scripts on the device, but having multiple tabs open on the same document was very nice.
It has a lot of features, so perhaps might offer some ideas.
There is evidently a linux version based on Mint, but I ran the Win exe version in WINE on MX Linux.
It already has syntax highlighting for MMbasic, which does help quite a bit.
I know it is not the solution, but was useful to peridot and myself, so was worth another mention.


mmedit.jpg
You do not have the required permissions to view the files attached to this post.
Post Reply