Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

garbage

3 views
Skip to first unread message

koolj

unread,
Oct 12, 2002, 8:19:22 PM10/12/02
to
Hi Folks,

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

Veli-Pekka Nousiainen

unread,
Oct 12, 2002, 10:17:22 PM10/12/02
to
Assign << MEM DROP >> to a key and press it occasionally
OR
You may consider put it at the beginning of your programs
OR
use it in BetaENTER so that you will have after each keypress
then tell us how slow your calculator was doing constantly CG
(remember to set Vectored ENTER as well as User Mode)
;-)
VPN

"koolj" <koolj...@yahoo.com> wrote in message
news:9258d3e8.02101...@posting.google.com...

John H Meyers

unread,
Oct 13, 2002, 7:47:13 PM10/13/02
to
koolj wrote:

> 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! =-----

koolj

unread,
Oct 15, 2002, 12:15:03 AM10/15/02
to
Hey thanks guys. I guess there's no built in thing to toggle huh?

Does this OS let you set timers like win32? Probably not huh? No message pump.

Anyway thanks.

0 new messages