View previous topic :: View next topic |
Author |
Message |
aknox2 n00b
Joined: 07 Feb 2003 Posts: 12
|
Posted: Sat Mar 01, 2003 11:38 pm Post subject: --fomit-frame-pointer or not? |
|
|
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 |
|
|
bsolar Bodhisattva
Joined: 12 Jan 2003 Posts: 2764
|
Posted: Sat Mar 01, 2003 11:48 pm Post subject: |
|
|
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 |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Sun Mar 02, 2003 2:35 am Post subject: |
|
|
It's reasonably safe but there are some packages that have problems with it. |
|
Back to top |
|
|
|