This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [Patch, Java]: Add --enable-reduced-reflection configure option.
- From: Andrew Haley <aph at redhat dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 26 Aug 2008 10:52:07 +0100
- Subject: Re: [Patch, Java]: Add --enable-reduced-reflection configure option.
- References: <48B3294E.2070303@avtrex.com>
David Daney wrote:
> This patch adds a new configure option to easily allow libgcj to be
> built with the -freduced-reflection option. This reduces the size (as
> reported by the size command) of libgcj by about 5% on i686-pc-linux.
> Although the resulting library has reduced functionality (as
> serialization, RMI and CORBA don't work with -freduced-reflection), the
> size savings can be important in some circumstances (embedded devices).
>
>
> The name of the option is --enable-reduced-reflection, although I
> considered and rejected --with-reduced-reflection.
>
>
> Tested on i686-pc-linux. Where as expected most -findirect-dispatch
> execution tests failed as well as the interpreter tests and several
> other random tests that rely on accurate reflection meta-data.
>
>
> OK to commit?
OK. I'm a little nervous about this, but I can see the advantages.
I wonder if it might be worth dropping the nonfunctional packages
from libgcj built with reduce reflection.
Andrew.