use only the amount of extram needed

This commit is contained in:
Toby Jaffey 2025-12-12 15:01:30 +00:00
parent 74267d94df
commit cb717ed108

View file

@ -4,7 +4,9 @@ PROJECT:=$(shell basename ${PWD})
OPT=-Os OPT=-Os
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
HOST_EXTRA=-i 4294967295 HEAP_SIZE=$(shell echo "320 * 200 * 4" | bc)
HOST_EXTRA=-e ${HEAP_SIZE} -i 9999999
all: all_common all: all_common
test: all test: all
${TOPDIR}/hosts/host-sdl/host-sdl ${HOST_EXTRA} ${PWD}/${PROJECT}.bin ${TOPDIR}/hosts/host-sdl/host-sdl ${HOST_EXTRA} ${PWD}/${PROJECT}.bin