Increase requested partition size to 2MB.

This gives a GC heap of around 650kB and a similar amount for
OS-managed data such as resources.
This commit is contained in:
Jeff Epler 2025-08-17 14:35:36 -05:00
parent 6b69bb4030
commit 9d4c8c655a
2 changed files with 26 additions and 3 deletions

View file

@ -108,10 +108,10 @@ REZ=Rez
RINCLUDES=/Retro68-build/toolchain/RIncludes
REZFLAGS=-I$(RINCLUDES)
$(BUILD)/micropython.bin $(BUILD)/micropython.APPL $(BUILD)/micropython.dsk: $(BUILD)/micropython.code.bin
$(BUILD)/micropython.bin $(BUILD)/micropython.APPL $(BUILD)/micropython.dsk: $(BUILD)/micropython.code.bin etc/micropython.APPL.r
$(REZ) $(REZFLAGS) \
--copy "$(BUILD)/micropython.code.bin" \
"$(RINCLUDES)/Retro68APPL.r" \
--copy $< \
etc/micropython.APPL.r \
-t "APPL" -c "mupy" \
-o $(BUILD)/micropython.bin --cc $(BUILD)/micropython.APPL --cc $(BUILD)/micropython.dsk
hmount $(BUILD)/micropython.dsk

View file

@ -0,0 +1,23 @@
#include "Processes.r"
#include "Retro68.r"
resource 'SIZE' (-1) {
reserved,
ignoreSuspendResumeEvents,
reserved,
cannotBackground,
needsActivateOnFGSwitch,
backgroundAndForeground,
dontGetFrontClicks,
ignoreChildDiedEvents,
is32BitCompatible,
notHighLevelEventAware,
onlyLocalHLEvents,
notStationeryAware,
dontUseTextEditServices,
reserved,
reserved,
reserved,
2 * 1024 * 1024, /* preferred partition size */
1024 * 1024 /* min partition size */
};