I also tried it, but it is not that big a difference:
text data bss dec hex filename flags
1991125 306324 270484 2567933 272efd vmlinux -fomit-frame-pointer
1981477 306324 270484 2558285 27094d vmlinux
1990965 306324 270484 2567773 272e5d vmlinux -momit-leaf-frame-pointer
this was with gcc 2.95.3 and binutils 2.12 on my lfs system
Rudmer
>
> > I use -momit-leaf-frame-pointer for optimization in some own
> > projects, instead of the "-fomit-frame-pointer". For me, this
> > results in better codesize/speed compared to both "-fomit-frame-pointer"
> > or no option at all. Actually gcc-2.95 seems to support this feature
> > as well, but it never made it into the 2.95 docs...
>
> I tried this, but it seemed to be the same as -fomit-frame-pointer
> (on 2.95 at least).
>
> Given that omitting the -fomit-frame-pointer makes a smaller kernel,
> that's easier to debug, I'd say this is a good thing to do unless someone
> can get *negative* benchmark results.
>
> M.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/