This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: cross-module inlining (was Re: using gcj for a different language- is it possible?)
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Cedric Berger <cedric at berger dot to>
- Cc: Tom Tromey <tromey at redhat dot com>, <java at gcc dot gnu dot org>
- Date: Mon, 9 Feb 2004 10:55:57 -0500 (EST)
- Subject: Re: cross-module inlining (was Re: using gcj for a different language- is it possible?)
On Mon, 9 Feb 2004, Cedric Berger wrote:
> >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?
> >
> >
> Depends if your main executable call external libraries that can
> get upgraded by the end-user I guess....
Calls to libraries should not be eligible for inlining (except for special
cases). With the compile-everything-at-once scheme Andrew mentioned,
that's what you get: inlining will only occur between classes that wind up
in the same object file.
Jeff