
GCC: -m486 flag on a Pentium?
There was a discussion recently on the linux-kernel mailing list in which
Linus suggested using:
-fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-function=2
The "-fno-strength-reduce" flag is there to avoid a bug in gcc, the rest to use
gcc 486 optimizations avoiding the 486's excessive alignment.
The -malign-* flags will work only on gcc-2.7.0 and later.
You might want to add this switches to
/usr/lib/gcc-lib/i486-linux/2.7.[012]/specs (choose your version)
under *cc1: and *cc1plus:
Hope it helps.
P.S. Is this in the FAQs ? If it isn't I think it should be.
--
Luca Lizzeri Casa: +39.+2.8053884
l...@niche.telnetwork.it Ufficio: +39.+2.4815525
Fax: +39.+2.4982660