Post Reply 
Program size limit (G1 vs G2)
10-15-2023, 04:43 PM
Post: #14
RE: Program size limit (G1 vs G2)
(09-30-2023 04:58 PM)komame Wrote:  I conducted tests for the maximum program size on the G1, and there is evidently a limit. It's not entirely transparent because, while sequentially uploading programs with increasing sizes by 100KB, I encountered very odd behaviors.
...
I performed a factory reset on the G1. Programs ranging in size from 0MB - 1.7MB could be transferred, edited, and executed without issues. However, programs exceeding 1.8MB could only be run; attempting to edit them caused a crash. At approximately 3.7MB, the program would no longer transfer (an empty file was created on the Prime). There were instances where a program exceeding 3MB in size would transfer to Prime displaying only 0.14KB, yet it executed and returned a result of 10 (meaning the last line executed correctly, so the program must have been stored in memory despite the incorrectly displayed size). I successfully uploaded a 2.1MB program to the G1 four times (under four different names, cumulatively occupying over 8MB), but I couldn't transfer a program sized 4MB or larger, even when it was the only program in memory. In summary, there's some kind of limit, but I'm uncertain if it stems from RAM constraints, especially since I could upload four 2MB programs. It appears more like a bug to me.

Piotr

I recall someone saying that a program is just a list of instructions. If this is true, your 4 MB test program, that would not compile (parsed), might be limited by the maximum number of elements in a list, and not by the program size.

PS. I do not know anything about Prime's internal program. So, this is just speculation.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Program size limit (G1 vs G2) - komame - 09-27-2023, 03:27 PM
RE: Program size limit (G1 vs G2) - Tyann - 09-27-2023, 05:14 PM
RE: Program size limit (G1 vs G2) - komame - 09-27-2023, 09:22 PM
RE: Program size limit (G1 vs G2) - Tyann - 09-28-2023, 04:52 AM
RE: Program size limit (G1 vs G2) - tjurij - 09-28-2023, 12:45 PM
RE: Program size limit (G1 vs G2) - Tyann - 09-28-2023, 06:06 PM
RE: Program size limit (G1 vs G2) - komame - 09-28-2023, 07:34 AM
RE: Program size limit (G1 vs G2) - komame - 09-28-2023, 01:40 PM
RE: Program size limit (G1 vs G2) - komame - 09-30-2023, 04:58 PM
RE: Program size limit (G1 vs G2) - Gene222 - 10-15-2023 04:43 PM
RE: Program size limit (G1 vs G2) - komame - 10-16-2023, 07:15 AM
RE: Program size limit (G1 vs G2) - komame - 10-18-2023, 07:32 AM
RE: Program size limit (G1 vs G2) - komame - 10-21-2023, 07:37 AM



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