Post Reply 
How free42's memory works?
03-21-2023, 03:53 AM (This post was last modified: 03-27-2023 03:50 AM by slabco.)
Post: #4
RE: How free42's memory works?
(03-20-2023 07:52 AM)brouhaha Wrote:  
(03-20-2023 04:11 AM)slabco Wrote:  Who can tell the machanics?

With Free42, the memory is managed by the C++ runtime system, so when memory has to be allocated by the calculator, it may be allocated from memory that the operating system (Windows MacOS, Linux, Android, etc.) has already given to the runtime system, or the runtime system may ask the operating system for more. In the latter case, usually more than is immediately needed is given by the operating system to the runtime system, hence an allocation can actually cause free memory (within the application) to go up.

Quote:How many memory of free42's can be used safely?

There's no easy way to tell. Free42 on a computer/phone/tablet works nothing at all like the HP-42S, which had exactly 8192 bytes of RAM (unless you cracked it open and put in more). The HP-42S fimrware managed it very closely, and always knew exactly how much unused RAM was present.

Unfortunately, wanting to know this for Free42 is sort of like wanting to know how many pages you can type into Microsoft Word, or how many tabs you can open in your web browser. At some point you'll hit a limit, but it's difficult to predict where that limit would be.

Probably before you hit the absolute limit, the performance of your computer/phone/tablet will start to suffer.
thank you very much for your reply!
Since free42 uses C++ runtime system to manage memory. Hp-42s has some limitation for it's programes. Such as GOT function can't jump to subroutines more than 1000 steps and for RTN fucntion Hp-42s can remember up to 8 pending return locations. Does free42 still have these limitations? Maybe it can jump more than 1000 steps and remember more locations for program to return.
Emus48 uses a file to simulate memory which a calculator has. I think free42 can do the same. Let users to choose how many memory they want. 8K-18G in settings for example. Then free42 creates a file on disk. When the app starts it can ask that much to opeartion system for use. So users can know how much memory they can use safely and make sure user's progames and data can be safely preserved on disk.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How free42's memory works? - slabco - 03-20-2023, 04:11 AM
RE: How free42's memory works? - brouhaha - 03-20-2023, 07:52 AM
RE: How free42's memory works? - slabco - 03-21-2023 03:53 AM
RE: How free42's memory works? - slabco - 03-27-2023, 03:49 AM
RE: How free42's memory works? - KeithB - 03-20-2023, 01:34 PM
RE: How free42's memory works? - slabco - 03-21-2023, 04:02 AM



User(s) browsing this thread: 1 Guest(s)