From 5dfa2823a0ee23303c9e1dd7e38833e3e6e01396 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Wed, 9 Jan 2019 17:18:55 +0100 Subject: add a malloc example it demonstrates that memory is only allocated if used. Signed-off-by: Manuel Traut --- schulung_tools/malloc/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 schulung_tools/malloc/Makefile (limited to 'schulung_tools/malloc/Makefile') diff --git a/schulung_tools/malloc/Makefile b/schulung_tools/malloc/Makefile new file mode 100644 index 0000000..b6160a8 --- /dev/null +++ b/schulung_tools/malloc/Makefile @@ -0,0 +1,7 @@ +malloc: malloc.c + $(CROSS_COMPILE)gcc -g -omalloc malloc.c + +clean: + rm -f malloc core + +.PHONY: clean -- cgit v1.2.3