mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Mention -march-native, #2289.
This commit is contained in:
parent
b44efe7ef7
commit
977ceb404d
@ -2071,18 +2071,18 @@ OPT, OPT_FAST, or OPT_SLOW lib/verilated.mk. Or, use the -CFLAGS and/or
|
||||
the compiler or linker. Or, just for one run, pass them on the command
|
||||
line to make:
|
||||
|
||||
make OPT_FAST="-Os -fno-stack-protector" -f Vour.mk Vour__ALL.a
|
||||
make OPT_FAST="-Os -march=native -fno-stack-protector" -f Vour.mk Vour__ALL.a
|
||||
|
||||
OPT_FAST specifies optimizations for those programs that are part of the
|
||||
fast path, mostly code that is executed every cycle. OPT_SLOW specifies
|
||||
optimizations for slow-path files (plus tracing), which execute only
|
||||
rarely, yet take a long time to compile with optimization on. OPT
|
||||
specifies overall optimization and affects all compiles, including those
|
||||
OPT_FAST and OPT_SLOW control. For best results, use OPT="-Os", and link
|
||||
with "-static". Nearly the same results can be had with much better
|
||||
compile times with OPT_FAST="-O1 -fstrict-aliasing". Higher optimization
|
||||
such as "-O2" or "-O3" may help, but gcc compile times may be excessive
|
||||
under O3 on even medium sized designs.
|
||||
OPT_FAST and OPT_SLOW control. For best results, use OPT="-Os
|
||||
-march=native", and link with "-static". Nearly the same results can be
|
||||
had with much better compile times with OPT_FAST="-O1 -fstrict-aliasing".
|
||||
Higher optimization such as "-O2" or "-O3" may help, but gcc compile times
|
||||
may be excessive under O3 on even medium sized designs.
|
||||
|
||||
Unfortunately, using the optimizer with SystemC files can result in
|
||||
compiles taking several minutes. (The SystemC libraries have many little
|
||||
|
Loading…
Reference in New Issue
Block a user