GCC gets a new Optimizer Framework
Posted May 20, 2004 9:43 UTC (Thu) by rmathew
In reply to: GCC gets a new Optimizer Framework
Parent article: GCC gets a new Optimizer Framework
Is is "less-integrated". When you compile with GCJ to native code it uses the same front-end. But when you want to compile to JVM - it's whole other compiler! Will it be possible to make JVM just another target ? RTL was unusable for this - but what about SSA ?
First off, RTL has not gone anywhere after the Tree-SSA merge - it is still there, though no longer where almost all of the optimisations are performed.
Second, the actual front end remains the same whether you are compiling to native code or to a class file containing JVM bytecodes - the difference is that JVM bytecodes are generated straight from the tree representation while native code is generated after the trees are converted to RTL and generic and machine-specific optimisations performed.
The main reason is that the GCC infrastructure does not directly support the notion of generating code for two different backends at the same time and it is not trivial to add support for such a thing.
Another reason is probably political.
to post comments)