inlining methods

Jeff Sturm jsturm@sigma6.com
Wed Oct 27 08:57:00 GMT 1999


Alexandre Petit-Bianco wrote:

<snip>

> With this patch, I verified that at least `static int foo (int a, int
> b){ return a+b; }', provided that it is declared before it is used,
> gets inlined.

Very nice.  I was able to build a large source tree with -O3 after
applying this patch.  The code size grew by some 20% so it would seem
that inlining is taking place.  I verified that it is working for
private methods, at least.

-- 
Jeff Sturm
jsturm@sigma6.com


More information about the Java mailing list