This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Kill hack in java disabling unit-at-a-time


Jan Hubicka writes:
 > > Jan Hubicka writes:
> >  > > bodies.
 > >  > 
 > >  > Can I have testcase for at lest one of them?  Since Java pass
 > >  > all the bodies at once to backend, the memory should not grow
 > >  > after all...
 > > 
 > > I don't understand.  I thought unit-at-a-time kept all the bodies
 > > until all the source had been parsed, and then generated code.
 > 
 > Yes, however at least my understanding of Java is that it does the same
 > (ie I was told several times that Java always has been unit-at-a-time
 > internally), but I might be mistaken of course.

No, java parses one class file, generates code for it, and then
nukes the bodies.  Then it reads the next class file, etc.

Andrew.


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