Is there a way to set the HP48GX to garbage collect while idle as well
as when it runs out of "FREE?"
Just wondering, sometimes it seems it could have collected while I was
thinking and not when I was a keying.
Thanks in advance
"koolj" <koolj...@yahoo.com> wrote in message
news:9258d3e8.02101...@posting.google.com...
> Is there a way to set the HP48GX to garbage collect while idle
> as well as when it runs out of "FREE?"
> sometimes it seems it could have collected
> while I was thinking and not when I was a keying.
If GC is taking too long whenever it occurs, see:
http://groups.google.com/groups?selm=3D462EC2.A38F7F84%40miu.edu
The idea is to do, e.g. 10000 FMEM to set the amount of free
memory to 10K, say, which will make GC much shorter
than if it was 100K. Even though GC will also occur more often,
its impact on your work will probably "feel" much less intrusive,
because of how short it is each time.
Actually, each version of FMEM should have ended with
0 DROP MEM rather than just MEM, because otherwise
it may return a false lower answer for the amount of free memory
actually left available, so here are updated versions:
FMEM for HP49:
(do HOME 256 ATTACH before downloading or typing the program,
because MAKESTR needs built-in library 256 to compile properly)
\<< :0:GCJUNK DUP PURGE MEM ROT -
IF DUP 0. > THEN MAKESTR SWAP STO
ELSE DROP2 END 0. DROP MEM \>>
FMEM for HP48 (try it if you've got 128K or merged 256K):
\<< :0:GCJUNK DUP PURGE MEM ROT -
IF DUP 0 > THEN "" SWAP 2 *
:COERCE: #18CEAh SYSEVAL :EXPAND: #61C1Ch SYSEVAL
SWAP STO ELSE DROP2 END 0 DROP MEM \>>
The standard precaution applies:
Backup your memory before trying any new program!
[r->] [OFF]
.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
Does this OS let you set timers like win32? Probably not huh? No message pump.
Anyway thanks.