This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Java]: Add --enable-reduced-reflection configure option.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]