View previous topic :: View next topic |
Author |
Message |
snowsquirrel n00b
Joined: 02 Jul 2002 Posts: 41 Location: Lunenburg, NS, Canada
|
Posted: Sat Jul 31, 2004 7:58 pm Post subject: Is there any speed difference with gentoo? |
|
|
I have used gentoo on an x86 machine before and there was a noticeable speed difference. There are many variations of x86 cpu's thus the optimizations are beneficial.
But I am guessing that most sparc distro compiles with -mcpu=ultrasparc -O2 which as what I am using with gentoo.
Comments? |
|
Back to top |
|
|
bung-foo Tux's lil' helper
Joined: 09 Jun 2002 Posts: 146
|
Posted: Sun Aug 01, 2004 5:21 pm Post subject: |
|
|
I actually use -Os rather then -O2 because I find that the sparc processors are plenty fast but the disc system in the ultra80 is old slow scsi--40mbs.
This is from the gcc manual:
-Os
Optimize for size. -Os enables all -O2 optimizations that do not typically increase code size. It also performs further optimizations designed to reduce code size.
-Os disables the following optimization flags:
-falign-functions -falign-jumps -falign-loops
-falign-labels -freorder-blocks -fprefetch-loop-arrays
Abe |
|
Back to top |
|
|
snowsquirrel n00b
Joined: 02 Jul 2002 Posts: 41 Location: Lunenburg, NS, Canada
|
Posted: Sun Aug 01, 2004 5:45 pm Post subject: |
|
|
Interesting. For biggies like Mozilla, Qt Designer/Assistant, Eclipse, etc, that could equal much better startup times.
Thanks for insight. Can I do an export CFLAGS='-Os -pipe -march=utlrasparc' before doing an emerge, or do I actually have to change it in the make.conf?
Thanks |
|
Back to top |
|
|
bung-foo Tux's lil' helper
Joined: 09 Jun 2002 Posts: 146
|
Posted: Sun Aug 01, 2004 6:00 pm Post subject: |
|
|
Not sure. I just set it in make.conf
Abe |
|
Back to top |
|
|
|