动态内存分配模块完成,并添加了测试程序

This commit is contained in:
sakitsuki_asahi
2026-05-12 01:15:34 +09:00
parent 6bad6360a9
commit c989dc8678
5 changed files with 78 additions and 14 deletions
+11
View File
@@ -0,0 +1,11 @@
.PHONY: all test clear
all: test
test:
mkdir -p .cache/shared .cache/test
gcc -shared -fPIC -o .cache/shared/libdma.so ./src/dynamic_memory_allocation/main.c -I./
gcc -o .cache/test/test_dma ./test/dynamic_memory_allocation.c -L./.cache/shared/ -ldma -I./ -Wl,-rpath='./.cache/shared'
./.cache/test/test_dma
clear:
rm -rf .cache