On Apr 6, 4:41 pm, Joep Suijs <[email protected]> wrote: > > Any progress on this? > > I have given this some thought. I expect a conversion from JAL to C > can be done, just like JAL to GIMPLE. However, the second one needs to > be complete, so you need device files for every platform. If you use > C, you can probably use the C header files. Downside is that while > converting, you must assume that all unknown variables et al do exist > in C and, in addition to this, need to be case-sensitive. > But the advantage is you can port it to a new platform with little effort! >
Greetings Joep, I'm glad you're thinking about the project. Your summary matches my original understanding of what Wouter was asking for. I haven't done anything further, yet, other than look at GCC front-end docs a little. Seems cool, but huge learning curve. Seems harder than Antlr, but it surely would be powerful to leverage GCC back-ends. Previously, I did a fair amount of work with 'Antlr', which was going along smoothly I thought - I just haven't had much time recently to work on it. My thought with Antlr was two-fold: 1) use Antlr to define a formal 'grammar' for JALV2. By formal I mean machine-readable -- a real JALV2 parser (no semantic handling though) then 2) use Antlr, and the grammar developed in step #1, to add ASTs. other notes: 3) you can choose Java, C, or Python as output from Antlr. I was using Python, but if someone preferred C, that would be fine too. My snapshot of the Antlr work for JAL is in this google group file area-- jal_grammar_snapshot.zip. Note carefully the comments in the code-- it explains exactly which version of Antlr I chose, in order to match up with the Python Antlr run-time. Apparently the Python output from Antlr lags behind the Java efforts. It is possible that by now, there is a newer version of Python Antlr run-time available. William -- You received this message because you are subscribed to the Google Groups "jallib" 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/jallib?hl=en.
