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

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
aknox2
n00b
n00b


Joined: 07 Feb 2003
Posts: 12

PostPosted: Sat Mar 01, 2003 11:38 pm    Post subject: --fomit-frame-pointer or not? Reply with quote

I've been having trouble finding out about this flag, which some people think is a must (freehackers.org) but isn't mentioned anywhere in the install guide or the use-flags guide.

Should I use it or not?

Don't tell me to RTFM, or if you must, please tell me what page!

Thanks
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Sat Mar 01, 2003 11:48 pm    Post subject: Reply with quote

From the gcc manpages:
Quote:
-fomit-frame-pointer
Don't keep the frame pointer in a register for functions that don't
need one. This avoids the instructions to save, set up and restore
frame pointers; it also makes an extra register available in many
functions. It also makes debugging impossible on some machines.

On some machines, such as the VAX, this flag has no effect, because
the standard calling sequence automatically handles the frame
pointer and nothing is saved by pretending it doesn't exist. The
machine-description macro "FRAME_POINTER_REQUIRED" controls whether
a target machine supports this flag.

It will increase your performance but on x86 you will be unable to debug. I think you can use it without problems.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Sun Mar 02, 2003 2:35 am    Post subject: Reply with quote

It's reasonably safe but there are some packages that have problems with it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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