Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:36 01 Aug 2025 Privacy Policy
Jump to

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 : CMM2: Program memory taken by CSUBs

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 11:16am 15 Mar 2021
Copy link to clipboard 
Print this post

This is not a complaint merely an RFI.

It looks like the ASCII/HEX text of a CSUB definition is maintained in Program memory even though it is presumably never referenced after the "flashing magic" has happened, e.g. for SPForth:

> memory
Program:
 90K (17%) Program (1059 lines)   <-- primarily the CSUB text
 29K ( 5%) 1 Embedded C Routine
397K (78%) Free


Is there any particular reason it has to be kept around, once it has been converted to native code couldn't the in-flash copy of the BASIC program just store blank lines in its place? Perhaps there is nothing to gain because you would be beyond the point where that extra Program Memory was useful.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025