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]

Re: Tree based inlining


Bryce McKinlay wrote:

> But GCJ does use functions as trees and its representation is 
> more-or-less the same as C and C++, right? Does anyone know of a 
> reason why it wouldn't work? 

Two problems to be aware of:

(1) GCJ uses functions as trees only when compiling from Java source.
When compiling from bytecode it it acts statement-at-atime, like the
traditional C/C++ mechanism.

(2) GCJ uses different tree nodes than G++ does for statements.
G++ has separate "statement" nodes - i.e. a conditional statement
is represented differently from a conditional expressions.
GCJ tries to be more "expression-oriented", using expression
nodes universally.  There is no inhernet reason GCC cannot support
both styles, except that is seems a bit wasteful to me.

    --Per



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