This is the mail archive of the java@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: reduce libgcj building time


Tom Tromey wrote:
If you want to go this route, you could try hacking the Makefile to
remove the code you don't need.  However, that might not be as simple
as you'd like, since Java's class libraries are fairly interdependent.
I used to remove the line containing "$(awt_source_files)" for
the variable definition for "ordinary_java_source_files" in the
libjava Makefile.in. This would however create problems with:

1. ".deps" files (see DEP_FILES definition) - I used to just
   remove all the ".deps" for AWT.

2. javax/naming/InitialContext.java which uses the Applet class.
   This can be trivially removed without apparent harm.

Ditto for all the zillion Locale files (I'd be really amazed
if people in all these locales were using GCJ or GCJ-generated
programs ;-)).

This used to speed up the builds quite a bit for me. The gcc
"-pipe" option as well as "-g0" give me an apparent boost,
most likely due to the reduced disc write times.

As an aside, can we not use the make "$(subst )" function
to generate the ".deps" file names? Why do they have to be
listed out explicitly?

As another aside, and somewhat off-topic for this thread,
does "darwin" mean the "pure" Darwin (as in the open-source
BSD derivative) or does it mean Apple MacOS X?

Sincerely Yours,
Ranjit.

--
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/



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