File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -231,4 +231,6 @@ tools/datagen/src/imgs/*_sobel_*
231
231
232
232
# Ignore VCD files
233
233
* .vcd
234
- test
234
+ test
235
+ * .zst
236
+ .vscode
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ TARGET?=test
3
3
4
4
# Compiler
5
5
CC =g++
6
- CFLAGS =-Wall -I. -O3 -g -Wextra -Wunused-function
6
+ CFLAGS =-Wall -Wextra -fsanitize=address -fsanitize=undefined -I. -O3 -g
7
7
8
8
ifdef USE_CPP17
9
9
CFLAGS+=-std =c++17
10
10
endif # USE_CPP17
11
11
12
12
# Target
13
13
LD =g++
14
- LFLAGS =-Wall -I. -lm -g
14
+ LFLAGS =-Wall -fsanitize=address -fsanitize=undefined - I. -lm -g
15
15
LIBS =-lsystemc -lm
16
16
17
17
# Source directories
@@ -70,6 +70,15 @@ $(OBJECTS): $(OBJDIR)/%.o : %.cpp
70
70
@$(CC ) $(CFLAGS ) $(INCDIR ) -c $< -o $@
71
71
endif # USING_TLM_TB_EN
72
72
73
+ valgrind :
74
+ valgrind --leak-check=full -s ./$(TARGET )
75
+
76
+ drmemory :
77
+ drmemory -- ./$(TARGET )
78
+
79
+ heaptrack :
80
+ heaptrack ./$(TARGET )
81
+
73
82
.PHONY : clean
74
83
clean :
75
84
@rm -rf obj
You can’t perform that action at this time.
0 commit comments