Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-fomit-frame-pointer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
choward
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 92

PostPosted: Thu Nov 21, 2002 6:04 pm    Post subject: -fomit-frame-pointer Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Nov 21, 2002 7:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Thu Nov 21, 2002 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Nov 21, 2002 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Thu Nov 21, 2002 9:18 pm    Post subject: Reply with quote

But then you may have libraries compiled with -fomit-frame-pointer and so on.... would you compile the entire KDE again? 8) 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 :lol:
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Nov 21, 2002 9:28 pm    Post subject: Reply with quote

Bloody Bastard wrote:
I know that mmx and sse optimizations can also give me some trouble, but I couldn't resist :lol:

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum