Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-03 Thread Tom Tromey
Manuel> Everything is possible! Not sure how hard it would be, though. As Manuel> said, GJC "gcj". Manuel> the Java FE, was doing something similar sometime ago, but Manuel> it has perhaps bit-rotted now. It used to, but when we moved to using ecj for parsing java source, we removed (IIRC) the b

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-02 Thread Andrew Haley
On 02/02/2016 05:41 PM, Manuel López-Ibáñez wrote: > Everything is possible! Not sure how hard it would be, though. As > said, GJC, the Java FE, was doing something similar sometime ago, but > it has perhaps bit-rotted now. It is doing something the other way around: bytecode to Gimple. Andrew.

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-02 Thread Manuel López-Ibáñez
On 1 February 2016 at 22:21, Bertram, Alexander wrote: > I'm not sure exactly where it would fit in however- I don't think it > could be described with the machine description language. There is > alot of complexity involved in handling things like addressable local > variables, which have to be a

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-02 Thread Martin Liška
On 02/01/2016 11:21 PM, Bertram, Alexander wrote: > Would it be possible to write a > backend that generates code from Gimple and not RTL? Hi. Actually, HSA back-end is such an example. Where we directly emit HSAIL code in form of BRIG (binary representation of the textual representation of HSAIL

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-01 Thread Bertram, Alexander
Thanks Mikhail and Manuel for the reactions! Mikhail, thanks for the tip on xmalloc, will take a look if that can help clean up the plugin code. Manuel, 0) Yes, we hope to make it faster! 1) Initially coding within GCC would have been too intimidating, but I think i've started to get a feel for

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-01 Thread Manuel López-Ibáñez
On 01/02/16 12:34, Bertram, Alexander wrote: I wanted to share a project we've been working on for sometime within the context of Renjin, a new interpreter for the R language running on the JVM. We basically needed a way to compile C and Fortran code to JVM classes, and for the last year or two

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-01 Thread Mikhail Maltsev
On 02/01/2016 03:34 PM, Bertram, Alexander wrote: > I wanted to share a project we've been working on for sometime within > the context of Renjin, > a new interpreter for the R language running on the JVM. > > We basically needed a way to compile C and Fortran code to JVM > classes, and for the la

GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-01 Thread Bertram, Alexander
I wanted to share a project we've been working on for sometime within the context of Renjin, a new interpreter for the R language running on the JVM. We basically needed a way to compile C and Fortran code to JVM classes, and for the last year or two we've been working on tool chain that's compose