Post Reply 
Program size limit (G1 vs G2)
09-30-2023, 04:58 PM (This post was last modified: 09-30-2023 05:00 PM by komame.)
Post: #13
RE: Program size limit (G1 vs G2)
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.
First, I wrote a program in C# that generates PPL programs. Their content was irrelevant; I was only interested in the size, so the generated programs contained comments and ended with RETURN 10, allowing me to verify if the program executed correctly to the end.
Code:
EXPORT SIZETEST()
BEGIN
////////////////////
////////////////////
.
.

////////////////////
////////////////////
RETURN 10;
END;
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
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) - 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: 5 Guest(s)