projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c64129d
)
build/sim: use -O0 for verilator compilation
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Fri, 7 Jun 2019 09:16:39 +0000
(11:16 +0200)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Fri, 7 Jun 2019 09:16:39 +0000
(11:16 +0200)
In most of the case, execution speed is already fast enough with -O0 and
with complex design -O0 is a lost faster to compile than -O3. In the future
we could add a switch to choose which optimization we want.
litex/build/sim/core/Makefile
patch
|
blob
|
history
diff --git
a/litex/build/sim/core/Makefile
b/litex/build/sim/core/Makefile
index 3737af82306abffc36fbcafa5b4f5072e8a7cb99..149789d8cb5bf16d96e270cdb9dffd015e30f7aa 100644
(file)
--- a/
litex/build/sim/core/Makefile
+++ b/
litex/build/sim/core/Makefile
@@
-1,7
+1,7
@@
include variables.mak
CC = gcc
-CFLAGS = -Wall -O
3
-ggdb $(if $(COVERAGE), -DVM_COVERAGE)
+CFLAGS = -Wall -O
0
-ggdb $(if $(COVERAGE), -DVM_COVERAGE)
LDFLAGS = -lpthread -ljson-c -lm -lstdc++ -ldl -levent
CC_SRCS ?= "--cc dut.v"