To: THE WATSONYOUTH who wrote (109850 ) 5/9/2000 1:30:00 AM From: milo_morai Respond to of 1586895
Better Athlon Linux performance! (CPU) Posted By johan Monday, May 8, 2000 - 3:09:03 AM Our latest Alpha Linux article has received a lot of attention. I would like to share some of the interesting feedback I got from several readers. Kevin Huber send me better flags for the gcc compiler (version 2.95.2 19991024), so that you can get more out of your Athlon and linux machine. CFLAGS = -s -static -O3 -fomit-frame-pointer -Wall -mpentiumpro -march=pentiu mpro -malign-functions=4 -funroll-loops -fexpensive-optimizations -malign-double -fschedule-insns2 -mwide-multiply Chris Rijk, Ace's RISC specialist send me this info: I've been doing a bit of gcc C compiling recently (for some C vs Java benchmarks) and have found that this works well on my 500MHz Athlon: gcc -O3 -finline-functions -funroll-all-loops -fstrict-aliasing -fomit-frame-pointer Though even with that, Sun's HotSpot JVM still beats gcc/C with my 'fibonachi' benchmark by a big margin. Need more (simple-ish) benchmarks though that I can readily do in both C and Java. Apparantly gcc 2.95.2 has these Alpha compilation flags but I have no idea what effect they have. -mfp-regs -mno-fp-regs -mno-soft-float -msoft-float Well, compiling is an art, what can I say? When using the cflags Kevin send me, first tests show a 12% improvement. Very respectable, but it is clear that the Athlon can not get the same improvement as the Alpha got from installing the CCC compiler, unless AMD helps the Linux developers a bit : ) . I used the most common flags, which are of course, not the best. Thanks Chris and Kevin. >> Discuss this Topic on General aceshardware.com