re: Don't omit frame pointer

Marc Lehmann (
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"

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? ;*)



for a pentium-optimizing gcc, look at

----==-- _
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ /
-=====/_/_//_/\_,_/ /_/\_\
The choice of a GNU generation