summaryrefslogtreecommitdiff
path: root/ecomp-c/README
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-03-06 17:30:26 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-03-06 17:30:26 +0100
commit974efcdec799b09f2f456031d8c33a94ebc38d74 (patch)
treefda2632c0653efac9713791d844b183907eb3d73 /ecomp-c/README
parenteb24268b8476b93eb7737be64d01106bc62c09ad (diff)
downloadcompilertests-974efcdec799b09f2f456031d8c33a94ebc38d74.tar.gz
compilertests-974efcdec799b09f2f456031d8c33a94ebc38d74.tar.bz2
added simple memory usage checker for standalone mode
freeing all resources correctly, made sure in HOSTED mode with valgrind
Diffstat (limited to 'ecomp-c/README')
-rw-r--r--ecomp-c/README1
1 files changed, 1 insertions, 0 deletions
diff --git a/ecomp-c/README b/ecomp-c/README
index 29b6c32..c541676 100644
--- a/ecomp-c/README
+++ b/ecomp-c/README
@@ -4,6 +4,7 @@ gcc -g -O1 -m32 -march=i386 -fno-omit-frame-pointer -ffreestanding -fno-stack-pr
gcc -g -O2 -m32 -march=i386 -fno-omit-frame-pointer -ffreestanding -fno-stack-protector -nostdlib -emain -Werror -Wno-noreturn -Wall -pedantic -fno-pic -std=c89 -o ec ec.c
gcc -g -O3 -m32 -march=i386 -fno-omit-frame-pointer -ffreestanding -fno-stack-protector -nostdlib -emain -Werror -Wno-noreturn -Wall -pedantic -fno-pic -std=c89 -o ec ec.c
# to use libc and syscall of the host
+gcc -g -O0 -m32 -march=i386 -DHOSTED -Werror -Wall -pedantic -std=c89 -o ec ec.c -lbsd
gcc -g -O3 -m32 -march=i386 -DHOSTED -Werror -Wall -pedantic -std=c89 -o ec ec.c -lbsd
clang -g -O0 -m32 -march=i386 -ffreestanding -fno-stack-protector -nostdlib -Wl,-emain -Werror -Wall -pedantic -std=c89 -o ec ec.c