@theuni it seems -O3 performs significantly better (at least on my system) compared to -O2. Is there a way to make that default?
-
sipa commented at 9:36 AM on November 2, 2014: contributor
-
gmaxwell commented at 4:07 AM on November 23, 2014: contributor
Sure, after AC_INIT but before AC_PROG_CC add a
if test -z $CFLAGS; then CFLAGS='-O3 -g' fiProg_CC will only set the default CFLAGS if they're not already set.
-
theuni commented at 6:12 PM on November 24, 2014: contributor
Note that it may be worth checking to see if there's any major feature (or handful) enabled by -O3 that accounts for a majority of the performance boost. If so, we could just enable those and leave the -O alone. Obvious ones to try would include: -ftree-vectorize, -finline-functions
-
dcousens commented at 2:48 AM on April 16, 2015: contributor
Since https://github.com/bitcoin/secp256k1/pull/146 was merged, close this?
- gmaxwell closed this on Apr 16, 2015