mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Zig allocator demo, using extram
This commit is contained in:
parent
a5018dab2f
commit
577aaadacd
9 changed files with 210 additions and 0 deletions
18
apps/zigalloc/Makefile
Normal file
18
apps/zigalloc/Makefile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
PROJECT=zigalloc
|
||||
TOPDIR=../..
|
||||
|
||||
HEAP_SIZE=$(shell echo "1024 * 1024 * 8" | bc)
|
||||
HOST_EXTRA=-e ${HEAP_SIZE} -i 100000
|
||||
|
||||
all:
|
||||
@# zig's objcopy is broken, so use external tool
|
||||
@# https://ziggit.dev/t/addobjcopy-producing-zero-padding-at-start-of-binary/13384
|
||||
zig build -Dheapsize=${HEAP_SIZE} && ${PREFIX}objcopy zig-out/bin/${PROJECT} -O binary ${PROJECT}.bin
|
||||
|
||||
clean: clean_common
|
||||
rm -rf zig-out .zig-cache
|
||||
|
||||
test: all
|
||||
${TOPDIR}/hosts/host/host ${HOST_EXTRA} ${PROJECT}.bin
|
||||
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
Loading…
Add table
Add a link
Reference in a new issue