Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-fomit-frame-pointer - Is this needed? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DislexiK
n00b
n00b


Joined: 09 Nov 2003
Posts: 72
Location: /home/dislexik

PostPosted: Mon Oct 18, 2004 12:28 pm    Post subject: -fomit-frame-pointer - Is this needed? [SOLVED] Reply with quote

I am currently bootstrapping, I have configured my CFLAGS in make.conf to the following:

CFLAGS="-march=athlon-xp -pipe -O3"

Now I have been browsing the Internet and all the time I see: -fomit-frame-pointer added as an option, should I have added this myself, I read what it does and understand it to be a pointer which helps increase compiling speed, however it can actually make debugging a lot harder, but then I read somewhere that it can be needed by debugging software?

Should I have added it, after bootstrapping would it cause any problems me adding it now if I need it, or should I do the bootstrap again, if I have to do the bootstrap again can I just initiate the bootstrap script again or should I format and start the process all over again...?

DislexiK
_________________
DislexiK DoT KoM - A Click Start To Becoming A GeeK
Linux, Networking, Hardware and Programming
Forum and Articles Dedicated to helping all types of experienced users


Last edited by DislexiK on Mon Oct 18, 2004 1:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
DislexiK
n00b
n00b


Joined: 09 Nov 2003
Posts: 72
Location: /home/dislexik

PostPosted: Mon Oct 18, 2004 12:31 pm    Post subject: Reply with quote

Ok please delete this thread, I have just read that -O3 actually turns on -fomit-frame-pointer where ever it needs to be used upon compiling.

DislexiK
_________________
DislexiK DoT KoM - A Click Start To Becoming A GeeK
Linux, Networking, Hardware and Programming
Forum and Articles Dedicated to helping all types of experienced users
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Oct 18, 2004 12:50 pm    Post subject: Reply with quote

For the future, you can remove your own posts as long as no-one's replied to them...

Edit: In fact, if you remove yours, then I can remove mine, and we can pretend the whole thing never happened! :lol:
_________________
No-one's more important than the earthworm.


Last edited by Maedhros on Mon Oct 18, 2004 12:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Tue Oct 19, 2004 9:15 pm    Post subject: Reply with quote

-fomit-frame-pointer is never enabled using an -O option on the x86 (or AMD64) platform - assuming you're using one of those.
Back to top
View user's profile Send private message
DislexiK
n00b
n00b


Joined: 09 Nov 2003
Posts: 72
Location: /home/dislexik

PostPosted: Wed Oct 20, 2004 6:22 am    Post subject: Reply with quote

I have -march=athlon-xp

DislexiK
_________________
DislexiK DoT KoM - A Click Start To Becoming A GeeK
Linux, Networking, Hardware and Programming
Forum and Articles Dedicated to helping all types of experienced users
Back to top
View user's profile Send private message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Wed Oct 20, 2004 8:49 am    Post subject: Reply with quote

Quote:
I have -march=athlon-xp


Then you will need to specify -fomit-frame-pointer in your CFLAGS.
Back to top
View user's profile Send private message
DislexiK
n00b
n00b


Joined: 09 Nov 2003
Posts: 72
Location: /home/dislexik

PostPosted: Wed Oct 20, 2004 3:34 pm    Post subject: Reply with quote

Ok, few questions:

What does it do

If I add it now, will it screw anything up regarding compilations?

DislexiK
_________________
DislexiK DoT KoM - A Click Start To Becoming A GeeK
Linux, Networking, Hardware and Programming
Forum and Articles Dedicated to helping all types of experienced users
Back to top
View user's profile Send private message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Wed Oct 20, 2004 5:18 pm    Post subject: Reply with quote

It improves the speed of the code but it's not suitable if you want to debug the programs (which sounds unlikely). It hardly ever causes a problem, and on those packages it's automatically filtered from your CFLAGS anyway.
Back to top
View user's profile Send private message
DislexiK
n00b
n00b


Joined: 09 Nov 2003
Posts: 72
Location: /home/dislexik

PostPosted: Wed Oct 20, 2004 8:01 pm    Post subject: Reply with quote

Ok, do you mean it improves the speed of the code of the application or the compilation speed?

If I start adding it now, will it affect anything I have already done?

DislexiK
_________________
DislexiK DoT KoM - A Click Start To Becoming A GeeK
Linux, Networking, Hardware and Programming
Forum and Articles Dedicated to helping all types of experienced users
Back to top
View user's profile Send private message
CaT
n00b
n00b


Joined: 18 Oct 2004
Posts: 30

PostPosted: Thu Oct 21, 2004 3:29 pm    Post subject: Reply with quote

hi if you enable -fomit-frame-pointer then the frame pointers of functions, that will not be used. will not be kept in the register.
Back to top
View user's profile Send private message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Thu Oct 21, 2004 4:49 pm    Post subject: Reply with quote

It speeds up the execution of the produced code. Have a look in GCC's info page on optimisation - it's all detailed in there.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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