Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A string bug in 1.2.8-s682 (*solved*)
#11
boriel Wrote:The heap es automatically defragmented on each free operation, if possible. Compacted means all blocks must be moved down, the free-list updated and compacted and also locate each declared string var (ponter) in memory and update it accordingly. The problem is: this is an expensive (time/space) function for the speccy, must be done dynamically and you will probably end wasting more space compiling that function that the memory you want to free in a 48Kb system. :|
QuickBasic did it's own garbage collection but you could force it if needed.
Defragmentation and compacting goes hand in hand as I understand it. If the
compiler does it's own defragmentation/compacting upon each free operation
then it would not be so big of a deal to make that avialible to the ZX BASIC
programer provided that it's modular enough. This is always an expensive
operation in computing and thus you can force it under idle circumstances.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)