List Commands Library for 50g
|
09-24-2017, 05:33 PM
Post: #161
|
|||
|
|||
RE: List Commands Library for 50g
(09-24-2017 03:37 PM)DavidM Wrote: Not in the way that I think you mean. Part of this stems from the fact that the actual memory footprint of a series of discrete objects in TEMP is not the same as the memory layout of a list containing those same objects in TEMP. So there's not a direct way to simply "remove the list prologue and SEMI" and put pointers to all the elements on the stack. Yes I think what you're describing is what I was hoping for. Sounds like it's not as straight forward as I had hoped. (09-24-2017 03:37 PM)DavidM Wrote: I suppose it may be possible using Saturn code to isolate a given string within a list in TEMP, remove the surrounding (extraneous) list structure, compress the TEMP slot, move all slots above it to keep the chain intact, etc., but that would be a massive undertaking.Yes was thinking there must be a way just didn't know how feasible. Guess if it was easy someone would have done it already (09-24-2017 03:37 PM)DavidM Wrote: One other thought I've had for this: have you considered storing the string to port memory, dropping references, forcing a GC, then recalling/purging? If you have room in one of the ports, that might be a workable alternative. My main working program is on the HP48 SX which I have the program in a protected port 2. The main program is at 80k and supporting libraries take up the rest of the port. I use port 1 as merged memory which gives me a reasonable amount of ram. So saving to a port will usually not help much from a memory aspect in this case. On the version I'm making for the hp50 I may save data to the port as there is more memory do so. On a separate topic I'll probably create a separate post for I'm having program speed issues when running my program as a library on the hp48G, hp49G or hp50G. I think it's related to the forced GC when I run the MEM command from a library opposed to a program stored as a variable. Thanks for the feedback and hope your able to find a workaround for your list project the list functions look very useful. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 14 Guest(s)