Allocating and freeing memory blocks

Discussions related to database technologies, file handling, directories and storage
Posts: 343
Joined: Tue 15 Oct 2019, 09:10

Re: Allocating and freeing memory blocks

Post by RichardRussell »

hellomike wrote:
Fri 19 Jun 2020, 15:03
Ok, so your interpreter has algorithms in place which detects string space getting freed and the ability to re-use it.
You make it sound unusual or noteworthy, but pretty much every BASIC interpreter does something similar. It's true that some early versions of BBC BASIC (e.g. the 8-bit 6502 and Z80 versions) had such a simplistic string allocation strategy that the memory occupied by a string could never be reused, but Acorn's ARM BASIC, Brandy, BBC BASIC for Windows and BBC BASIC for SDL 2.0 all allow memory freed by one string to be reused by another string. So this has been a feature of BBC BASIC since 1984 or thereabouts!
If you have a comment about the style or tone of this message please report it to the moderators by clicking the exclamation mark icon, rather than complaining on the public forum.