From cb717ed10822794a43092268a26bd2552cdf26a9 Mon Sep 17 00:00:00 2001 From: Toby Jaffey Date: Fri, 12 Dec 2025 15:01:30 +0000 Subject: [PATCH] use only the amount of extram needed --- apps/gfx/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/gfx/Makefile b/apps/gfx/Makefile index 9616860..59c6298 100644 --- a/apps/gfx/Makefile +++ b/apps/gfx/Makefile @@ -4,7 +4,9 @@ PROJECT:=$(shell basename ${PWD}) OPT=-Os 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 test: all ${TOPDIR}/hosts/host-sdl/host-sdl ${HOST_EXTRA} ${PWD}/${PROJECT}.bin