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: does gcj do inlining when generating bytecodes?


Tom Tromey wrote:

>>>>>>"Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
>>>>>>
> 
> Adam> I asked earlier if .java -> .o would inline, and the answer was
> Adam> yes. Will GCJ inline small final/private methods within a single
> Adam> class when compiling .java -> .class?
> 
> Nope.
> 
> We don't really do much, if any, optimizing when generating bytecode.
> We could, but it has never been seen as very important.


Also, if a tree-based inliner is written (I believe that was one of the
intents, given that front-ends are now encouraged to represent
whole functions/methods as trees, but I don't know the status),
then it might be easier to do this.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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