

Isnt -pipe enabled by default, along with -O3 and whatever processor you have?Andersson wrote:That is because many people don't bother setting the cflags at all.



Code: Select all
CFLAGS="-march=athlon-xp -mmmx -msse -m3dnow -Os -pipe -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays -falign-functions=16 -falign-labels=1 -falign-loops=16 -falign-jumps=16 -fstack-protector -mfpmath=sse,387"-mmmx, -msse and -m3dnow are implied by your -marchsonic_ wrote:How many of these flags are already implied?
You missed -fomit-frame-pointer, it's in all the O's. And the -fstack-protector is ProPolice ( http://www.research.ibm.com/trl/projects/security/ssp/ ).hensan wrote:-mmmx, -msse and -m3dnow are implied by your -marchsonic_ wrote:How many of these flags are already implied?
Also I see you use -Os, nothing wrong with that. But since you then explicitly enable all the flags that makes -Os different from -O2 (except -freorder-blocks), you might as well use -O2 and remove -falign-functions, -falign-jumps, -falign-loops, -falign-labels, -freorder-blocks and -fprefetch-loop-arrays. These flags have quite good values by default, so you don't really gain much by defining your own values.
I couldn't find -fstack-protector in the gcc documentation, whats that all about?
