Default release compilation with -O3 #86

issue sipa openend this issue on November 2, 2014
  1. sipa commented at 9:36 am on November 2, 2014: contributor
    @theuni it seems -O3 performs significantly better (at least on my system) compared to -O2. Is there a way to make that default?
  2. gmaxwell commented at 4:07 am on November 23, 2014: contributor

    Sure, after AC_INIT but before AC_PROG_CC add a

    0if test -z $CFLAGS; then
    1    CFLAGS='-O3 -g'
    2fi
    

    Prog_CC will only set the default CFLAGS if they’re not already set.

  3. theuni commented at 5:12 pm on November 24, 2014: contributor
    Sorry for the late response. Exactly what @gmaxwell said.
  4. 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
  5. sipa commented at 1:47 am on December 9, 2014: contributor
    See #146.
  6. dcousens commented at 2:48 am on April 16, 2015: contributor
    Since https://github.com/bitcoin/secp256k1/pull/146 was merged, close this?
  7. gmaxwell closed this on Apr 16, 2015


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-22 11:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me