I have such a compiler framework in my optimizing Jython compiler. I'll have it ready for other people to work with by PyCon, if you are attending this year we can talk about it face to face.
It doesn't use a traditional flowgraph SSA. Instead I've chosen a representation that's closer to the internal representation in Hotspot, a so called "sea of nodes" SSA. This is because it simplifies instruction scheduling. I would definetly like to share this with as many of you as possible. But I'm doing heavy refactoring at the moment, and would prefer to wait two-three weeks (after PyCon) with the sharing. /Tobias On Fri, Mar 13, 2009 at 3:43 PM, Charles Oliver Nutter < [email protected]> wrote: > > I'm looking to do a transformation of JRuby's AST into SSA or CPS so I > can more easily apply optimizations to it. Currently I'm walking the AST > and gathering what info I can, mostly based on isolated nodes. It seems > that an SSA graph would be easier to inspect, and I'd get more > optimizations almost for free. > > My questions are: > > * Anyone know of a compiler toolchain for JVM which accepts an SSA > graph, or tools that might help with this process? > * Does this sound like a good idea? Perhaps there's a shared library > possibility here? > > - Charlie > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en -~----------~----~----~----~------~----~------~--~---
