Carlos E. R. wrote:
The Wednesday 2006-02-15 at 07:48 -0500, ken wrote:
"-O2 -march=i686 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2"
Ciao, Marcus
If you're compiling for your own machine(s), why not optimize the compiled code? For example, my cpu is a pentium 4M, so I include "-mcpu=pentium4m" in CFLAGS. Makes smaller and faster code.
I think you would get better perfomance with "-march=pentium4m" instead.
Actually, I have both set the same. (I set it in some config file a long time ago and don't even remember anymore where I did it.) Yeah, according to the gcc manpage, it's redundant this way: -march=cpu-type Generate instructions for the machine type cpu-type. The choices for cpu-type are the same as for -mcpu. Moreover, spec‐ ifying -march=cpu-type implies -mcpu=cpu-type. but it doesn't give a non-redundant way to specify it. :/ I'm thinking the optimized code is saving this laptop's batteries literally millions of electrons. And a fast machine is a happy machine. Cyberhappy, ken -- "This world ain't big enough for the both of us," said the big noema to the little noema.