Skip to content

Commit 496466f

Browse files
committed
add rundebug to makefile, useful for spotting issues and such
1 parent 16edfe6 commit 496466f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
run: run.c
55
gcc -O3 -o run run.c -lm
66

7+
# useful for a debug build, can then e.g. analyze with valgrind, example:
8+
# $ valgrind --leak-check=full ./run out/model.bin 1.0 3
9+
rundebug: run.c
10+
gcc -g -o run run.c -lm
11+
712
# https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
813
# https://simonbyrne.github.io/notes/fastmath/
914
# -Ofast enables all -O3 optimizations.

0 commit comments

Comments
 (0)