Building java library is slow
Tom Tromey
tromey@redhat.com
Wed Mar 27 18:55:00 GMT 2002
>>>>> "Brad" == lucier <lucier@math.purdue.edu> writes:
Brad> The java library seems to be made serially, even when "make -j
Brad> 8' is specified.
Do you mean building the .o files or the .class files?
(If the gcj invocation has `-C' then it is the .class files.)
I wonder whether it is even possible for us to build the .class files
in parallel. Suppose one invocation of gcj starts writing a .class
file just as another invocation needs that class. The second
invocation could see an incomplete file.
Our eventual plan is to build all the .class files with a single gcj
invocation. This will speed things up, but it won't really help on
parallel machines the way that -jN does (unless we add threads to gcj
I guess). I believe we currently don't do this due to bugs. I
haven't actually tried it in a while.
Tom
More information about the Gcc
mailing list