Merging identical functions in GCC

Daniel Berlin dberlin@dberlin.org
Sat Sep 16 23:57:00 GMT 2006


> >No it can't. It has no idea what a function consists of other than a
> >bunch of bytes, in pretty much all cases.  ... Stupid byte
> >comparisons of functions generally won't save you anything truly
> >interesting.
>
> Microsoft's implementation has proven that "stupid" byte comparions can
> generate significant savings.
>
No they haven't.
But have fun implementing it in your linker, and still making it safe
if that's what you really want.
I'm not going to do that, and I don't believe it is a good idea.



More information about the Gcc mailing list