Can an elf file allocate more memory depending on hardware?

I’m building a physical arcade box for my students, the idea is to have them build games and then put them on the arcade box to show off their work in class. With the ages of the kids and their experience I’m focusing more on logic loops and general coding techniques, not as much around optimization. I don’t want to limit their creative potential and interest in building things because the Raspberry Pi zero can’t run anything reasonable.

I have a test game that seems quite simple, viable for the students to build, simple but tends to crash on the Raspberry Pi Zero quite quickly. I do realize there’s some excessive “after” blocks and things that could be refined (I’m still cutting and narrowing down the code to see what may be the primary reasons for the crash)

The panic code is 840 (which isn’t documented: https://arcade.makecode.com/device/error-codes but I assume it’s around memory allocation as this game works just fine in the browser version)

I’ve been able to setup a Raspberry PI 3B+ and run the elf files directly on linux (trixie) by simply making the elf files executable. This game continues to crash even on this device. I have a Raspberry Pi 5 as well, but before I spend the time (even just getting it’s HDMI to work… :expressionless_face:) I’d like to know if adding more power allows the game to allocate more memory of there’s some sort of limit just because it’s an elf file.

1 Like