This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: I can make your gcj-compiled binaries much smaller.
Adam Megacz writes:
>
> Andrew Haley <aph@redhat.com> writes:
> > This leads to a situation where you have no idea if a build has
> > succeeded or not.
>
> Isn't this a natural consequence of late binding? Couldn't this
> happen even without my proposal, if you reference-by-reflection some
> class in myLibrary.so and myLibrary.so isn't around at runtime?
Yes, but that's your fault and you should be expected to know it's
missing. However, If you use a library API and your program fails
later because of late binding within that library, you have a good
reason to complain. You might not even have the source for that
library, and you certainly won't have the time to do a full code
audit.
At present, static linkage isn't very tempting because it makes such
large executables. If we have more people using static linkage we'll
have problems. So, I'd like to figure out a way to make static
linkage less unreliable.
Andrew.