cross-module inlining (was Re: using gcj for a different language - is it possible?)

Andrew Haley aph@redhat.com
Mon Feb 9 09:56:00 GMT 2004


Jeff Sturm writes:
 > On 8 Jan 2004, Tom Tromey wrote:
 > > Offhand I don't remember what sort of inlining we can do. We're
 > > sort of moving away from doing inlining by default, since that
 > > breaks binary compatibility. But, yes, if the user asks for it,
 > > gcj will inline methods, hopefully even across class boundaries.
 > 
 > I've been thinking a little about this since it can restrict inlining,
 > escape analysis, and any other sort of useful IPA gcj might perform.
If you want to do IPA, compile the files at the same time, and this
gives gcj carte blanche to do any optimizations it can find, including
full inlining. Separate compilation, however, implies binary
compatibility.
 > Similarly in Java, why not leave the most aggressive optimizations
 > for the main executable (non-PIC) and stick to conservative
 > binary-compatible optimizations for libraries? Does binary
 > compatibility really matter for non-library code?
That's up to the user, surely. I don't think we need to have any
particular policy here.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /