AUTHOR

i want a lady that runs -O2 -march=native -pipe

-fexpensive-optimizations
Tychon quote:
-fexpensive-optimizations
are you a fellow Gentoo user?
g0vernUrSoul quote:
are you a fellow Gentoo user?
gcc.
Tychon quote:
gcc.
Smiley


LDFLAGS='-Wl,-O1,--enable-new-dtags,--sort-common,--allow-multiple-definition,--allow-multiple-definition,--relax -z combreloc -z muldefs -s'

CFLAGS="-g0 -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -pipe -O3 -march=pentium4 -fweb -funswitch-loops -funroll-all-loops -funit-at-a-time -fsched2-use-traces -fsched2-use-superblocks -fsched-stalled-insns=12 -frename-registers -fprefetch-loop-arrays -fpeel-loops -fomit-frame-pointer -fmerge-all-constants -finline-limit=32768 -finline-functions -ffunction-sections -ffast-math -fdata-sections -fbranch-target-load-optimize2"

CXXFLAGS="-g0 -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -pipe -O3 -march=pentium4 -fweb -funswitch-loops -funroll-all-loops -funit-at-a-time -fsched2-use-traces -fsched2-use-superblocks -fsched-stalled-insns=12 -frename-registers -fprefetch-loop-arrays -fpeel-loops -fomit-frame-pointer -fmerge-all-constants -finline-limit=32768 -finline-functions -ffunction-sections -ffast-math -fdata-sections -fbranch-target-load-optimize2 -fvisibility-inlines-hidden -fabi-version=0 -fpermissive -fno-enforce-eh-specs"
waait.. isnt his CXFLAGS and CXXFLAGS supposed to be the same? lol or am i missing the point here
g0vernUrSoul quote:
holy shit @ that USE flag list hahahahahaha
it's not even the USE

it's the idiotic abuse of CFLAGS/CXXFLAGS/LDFLAGS, that should never be used in conjunction with each other (chiefly, because neither he, nor the GCC architects, have tested behaviour of the combination, nor should they)

plus -O3? Some people see "optimizations" and assume every single one of them that can be added is going to result in an improvement.

it's idiotic. it causes any number of instabilities, is utter hell to debug, and is why a number of package maintainers are actually stripping/forcing certain flags now
g0vernUrSoul quote:
waait.. isnt his CXFLAGS and CXXFLAGS supposed to be the same? lol or am i missing the point here
CFLAGS is for C compiler, CXXFLAGS is for C++ compiler.
(Yeah, they will usually be the same, but not always.)
g0vernUrSoul quote:
waait.. isnt his CXFLAGS and CXXFLAGS supposed to be the same? lol or am i missing the point here
missing the point Smiley

and no, there's no particular reason to keep them the same. You could spend the time researching to find which makes sense for your arch, but ultimately you're going to end up wasting your time for a nominal performance improvement at best, and in many cases a degradation at the expense of decreased stability.
And, for moments of fun, CPPFLAGS is for C preprocessor and not C++ as you might guess.
*backs out slowly*
I keep reading that and my head goes "fun rolls!" in response. I have never needed some of these, hell.
Hercules quote:
love this comment
I died when I saw that. You know you've done something really dumb when you get something like that back on a ticket comment.
Tychon quote:
I died when I saw that. You know you've done something really dumb when you get something like that back on a ticket comment.
Smiley

Quick reply

Sign in to post a message.
Smileys

Times shown in Eastern Time (ET).