🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50927

Q: what exactly does -fomit-frame-pointer do?

#50927
From: Eyal Lebedinsky
Date: Tue, 27 Jul 1993 12:34
19 lines
1280 bytes
Hello,

I see many packages configured with this option. I understand that it
will eliminate the frame pointer for functions that do not need it, thus
freeing up another register and maybe saving on housekeeping code.

However, when I tried it on my program, it grew up from 220k to 240k.
The Q is: what's going on? If the frame pointer was not needed then how
comes removing it adds more code? If the extra code is compensated by
faster execution then I may consider it - can someone give a sketch of
what this option does?

I understand enough about compiler internals and code generation so
there is no need to make the answer 'simple'.


--
Regards
	Eyal Lebedinsky		eyal@ise.canberra.edu.au
Technical Details
Message-ID: <eyal.743776466@fir>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!sunic!uunet!munnari.oz.au!newshost.anu.edu.au!csc.canberra.edu.au!fir!eyal

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,6a48ff083b2e6ca9,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-07-27 18:51:56 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!sunic!uunet!munnari.oz.au!newshost.anu.edu.au!csc.canberra.edu.au!fir!eyal
From: eyal@fir.canberra.edu.au (Eyal Lebedinsky)
Subject: Q: what exactly does -fomit-frame-pointer do?
Message-ID: <eyal.743776466@fir>
Sender: news@csc.canberra.edu.au
Organization: University of Canberra
Date: 27 Jul 93 12:34:26 GMT
Lines: 19