re: Don't omit frame pointer

Marc Lehmann (mlehmann@hildesheim.sgh-net.de)
Thu, 27 Feb 1997 23:37:45 +0100 (MET)


>- -fomit-frame-pointer is a terrible thing and is generally only
>done much on linux becasue Linus decided to use it when
>building the kernel (I'd say a good percentage of gcc users
>who don't use Linux never used it...)

You see.. the x86 chips have 7 usable registers: ax, cx, dx, bx, si,di, bp
thats not very much compared to other architectures...

saving one of them is a paramount gain, since register-arithmetic
is MUCH MUCH MUCH faster on pentium/ppro machines.

This is not much of a problem on alphas or other "sane"
architectures...

I agree, though, that register allocation and loop optimizations
of gcc are terrible, and there are many horrible hacks in gcc :)

When will global-alloc be re-written? ;*)

bye,
Marc

---------------------------------------------------------------------

for a pentium-optimizing gcc, look at http://www.goof.com/pcg

-----==-
----==-- _
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / mlehmann@hildesheim.sgh-net.de
-=====/_/_//_/\_,_/ /_/\_\ pcg@goof.com
The choice of a GNU generation