Re: Frame Pointer
But do note that code size increase quite a bit (because stack references via ESP are one byte larger) when omitting the frame pointer. If you are compiling something small and computationally-intensive like gzip, this may help. But if you are compiling something big and not that computationally-intensive, such as the kernel or mozilla, it is often better to preserve the frame pointer and use -Os to reduce code size even more. You may even gain speed because the code fits more nicely in the cache.