View previous topic :: View next topic |
Author |
Message |
choward Tux's lil' helper
Joined: 08 Nov 2002 Posts: 92
|
Posted: Thu Nov 21, 2002 6:04 pm Post subject: -fomit-frame-pointer |
|
|
People commonly say that using -fomit-frame-pointer is a big speed boost, since it frees up one of the few registers on the x86 CPU. Because of that, I've built my system without frame pointers. However, is this assumption true?
I noticed a new thread on lkml recently:
http://marc.theaimsgroup.com/?t=103785428900001&r=1&w=2
I realize this is specific to the kernel. Has anyone done actual comparisons of other systems on their gentoo box? _________________ Craig Howard
4B Computer Science -- University of Waterloo |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Nov 21, 2002 7:08 pm Post subject: |
|
|
I would like to make my standard plea that people not use this option, because it impairs the ability to file useful bug reports. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Lovechild Advocate
Joined: 17 May 2002 Posts: 2858 Location: Århus, Denmark
|
Posted: Thu Nov 21, 2002 7:16 pm Post subject: |
|
|
rac wrote: | I would like to make my standard plea that people not use this option, because it impairs the ability to file useful bug reports. |
If something acts odd with a program and you've compiled it with -fomit-frame-pointer, before you file a bug report just recompile without the option... it's that simple, if the problem goes away... well then, file a report that says, craps out with -fomit-frame-pointer... |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Nov 21, 2002 7:29 pm Post subject: |
|
|
More so than "you can't file a bug report because people will blame it on omit-frame-pointer", I meant that compiling things (applications and libraries) with that option makes stack traces and core dumps virtually unusable, because debuggers will be unable to synchronize the symbolic info. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Thu Nov 21, 2002 9:18 pm Post subject: |
|
|
But then you may have libraries compiled with -fomit-frame-pointer and so on.... would you compile the entire KDE again? Thus, I agree with rac
I stopped using -fomit-frame-pointer after some packages gave me some trouble in gcc 2.95 (Arts and kdemultimedia). For gcc 3.2, I think that optimizations are not completely safe yet.
I am using "-march=pentium3 -mmmx -msse -mfpmath=sse -O2 -pipe" and things are quite stable, without loosing aparent performance. I know that mmx and sse optimizations can also give me some trouble, but I couldn't resist |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Nov 21, 2002 9:28 pm Post subject: |
|
|
Bloody Bastard wrote: | I know that mmx and sse optimizations can also give me some trouble, but I couldn't resist |
Sorry, a bit OT, but BB, GCC might be resisting on your behalf. See CFLAGS and kernel compilation. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|