Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Where and How? Firefox Compile Optimization.

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
35 posts
  • Previous
  • 1
  • 2
Author
Message
n0rbi666
l33t
l33t
User avatar
Posts: 707
Joined: Fri Mar 04, 2005 7:18 pm
Location: \Poland\Krakow

  • Quote

Post by n0rbi666 » Mon Apr 03, 2006 8:04 am

cynric - don't try -Os with gcc-4.1.0 or any gcc 4 :!: It's broken - see this http://forums.gentoo.org/viewtopic-t-43 ... t-250.html thread

(-Os broke my kde, and mozilla-firefox does'nt work when compiled with -Os and gcc 4.1.0 ...)
Top
mrcs
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Fri Oct 10, 2003 4:06 pm

  • Quote

Post by mrcs » Mon Apr 03, 2006 11:35 am

n0rbi666 wrote:cynric - don't try -Os with gcc-4.1.0 or any gcc 4 :!: It's broken - see this http://forums.gentoo.org/viewtopic-t-43 ... t-250.html thread

(-Os broke my kde, and mozilla-firefox does'nt work when compiled with -Os and gcc 4.1.0 ...)
I've compiled my whole system with -Os using gcc-4.1 and glibc-2.4 and everything works as expected. The kde stuff I've installed (kdelibs, k3b, kile) compiled just fine, so I guess it's not completely broken?
Top
cynric
Guru
Guru
User avatar
Posts: 439
Joined: Fri Oct 08, 2004 2:14 am

  • Quote

Post by cynric » Mon Apr 03, 2006 4:43 pm

Hrm. Thanks for the heads up n0rbi666. I think you must have had some other problem at fault though (haven't read the link yet). I have compiled some things as -Os with gcc-4.0 without problems; haven't tried 4.1 yet. I've also heard of many others doing this successfully with KDE. I myself don't run run KDE so that portion isn't a problem.
"This Snow Crash thing -- is it a virus, a drug, or a religion?" "What's the difference?"
-- Neal Stephenson - Snow Crash
Top
Vla
Tux's lil' helper
Tux's lil' helper
Posts: 135
Joined: Fri Sep 09, 2005 1:11 pm
Location: Somewhere in the middle

  • Quote

Post by Vla » Tue Apr 04, 2006 12:21 am

Yes, I compiled my system with -Os and gcc 4.1.0.
KDE, better kdesktop crashed with "-Os -march=athlon-xp -fomit-frame-pointer -ftree-vectorize".
Konqueror and even firefox crashed irregulary. Firefox made me think it could be another probem with a package both depend on.
So i recompiled kdesktop and kdelibs with debugging symbols and using gdb I found out, that jpeg was the problem.
I recompiled it with "-march=athlon-xp -pipe" and all erros are gone. I don't know, if it's -ftree-vectorize oder -Os but I guess it's been -Os.
Hope I could help with this information.
Top
predatorfreak
l33t
l33t
User avatar
Posts: 708
Joined: Thu Jan 13, 2005 2:15 am
Location: USA, Michigan.
Contact:
Contact predatorfreak
Website

  • Quote

Post by predatorfreak » Tue Apr 04, 2006 12:34 am

Vla wrote:Yes, I compiled my system with -Os and gcc 4.1.0.
KDE, better kdesktop crashed with "-Os -march=athlon-xp -fomit-frame-pointer -ftree-vectorize".
Konqueror and even firefox crashed irregulary. Firefox made me think it could be another probem with a package both depend on.
So i recompiled kdesktop and kdelibs with debugging symbols and using gdb I found out, that jpeg was the problem.
I recompiled it with "-march=athlon-xp -pipe" and all erros are gone. I don't know, if it's -ftree-vectorize oder -Os but I guess it's been -Os.
Hope I could help with this information.
I bet 20 bucks it was -ftree-vectorize.
System: predatorbox
Distro: Arch Linux x86_64
Current projects: blackhole, convmedia and anything else I cook up.
Top
cynric
Guru
Guru
User avatar
Posts: 439
Joined: Fri Oct 08, 2004 2:14 am

  • Quote

Post by cynric » Tue Apr 04, 2006 12:42 am

Yeah, it most likely was -ftree-vectorize. I used it for a while, but when recompiling my entire system using gcc-4.1, it said not to use as it causes breakage. Audacious and libVxf86dga both failed to compile with it.
"This Snow Crash thing -- is it a virus, a drug, or a religion?" "What's the difference?"
-- Neal Stephenson - Snow Crash
Top
Vla
Tux's lil' helper
Tux's lil' helper
Posts: 135
Joined: Fri Sep 09, 2005 1:11 pm
Location: Somewhere in the middle

  • Quote

Post by Vla » Tue Apr 04, 2006 1:40 am

Hey, I will give it a shot and let you know! :roll:

btw, I don't expect magic from this flag, but I also can't find any kind of benchmark regarding this. I just read on the gcc wiki that this will be improved in next releases... Anyone?

Edit: Damn, you're right. Thought I could have found something on my own :( But I'll get my chance ;)
Top
cynric
Guru
Guru
User avatar
Posts: 439
Joined: Fri Oct 08, 2004 2:14 am

  • Quote

Post by cynric » Tue Apr 04, 2006 2:05 am

Finding benchmarks on any CFLAG configuration is difficult. Even more so to find one not biased; if there is such a thing. -ftree-vectorize is being included in the 4.2 branch so it is no doubt being cleaned up. Glad to see you (Vla) fixed your problem.
"This Snow Crash thing -- is it a virus, a drug, or a religion?" "What's the difference?"
-- Neal Stephenson - Snow Crash
Top
KD-120RD
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Sun Mar 07, 2004 3:16 pm
Location: Hamburg

  • Quote

Post by KD-120RD » Wed Apr 19, 2006 1:53 am

I played a bit around with -Os the last days. Now my kde is compiled with -Os. I did some benchmarks on kde startup with a stopwatch.
It gave an avarage 3% performance (startup time) win. Not really much, but memory usage went down aswell so I'l keep it.

As the next step I'd like to emerge -eat system, with -Os. I think it would make sense for cpu intense apps to be -03 compiled, as they willl run faster, like gzip or lame. I am unsure with some apps, though.
How about compiling gcc-3.4.x with -O3? Is that a good idea? And how about glibc, or libs in general. What will they benefit most from?
Top
KD-120RD
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Sun Mar 07, 2004 3:16 pm
Location: Hamburg

  • Quote

Post by KD-120RD » Thu Apr 27, 2006 12:12 pm

This a little OT, because it has nothing to to with FF anymore, so it will be my last post. (I also switched to konqi now. I miss some extensions, but I will keep it because overall performance is much better).

I am compiling world with -Os right now, but have an extra packages.cflags file for those more cpu intense apps.
I found, that glibc and gcc strip -O3

More about cflags: Cflags Central
Top
Post Reply

35 posts
  • Previous
  • 1
  • 2

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy