Googling for "LLVM JVM" unearths few interesting things, i.e. a LLVM- 
based JVM JIT for GCJ apparently maintained by someone at Red Hat.

<http://lists.cs.uiuc.edu/pipermail/llvmdev/2006-April/005579.html>

That said, LLVM has all sorts of code analysis and transformation  
capabilities for its own bytecode format (that are usually used to  
optimize the code, but it can of course be used for other sorts of  
code comprehension tasks too), as well as codegen modules for several  
CPU architectures (to create native object code once you're happy with  
the optimizations). I see no reason why there couldn't be a codegen  
module targetting JVM bytecode.

LLVM also ships with a C-to-LLVM compiler, so in similar vein, Java-to- 
LLVM might also be possible. OTOH, C has much less expectations w/ 
regard to the runtime environment than Java (the language) does, so  
there might be dragons that way.

Attila.

On 2007.11.12., at 7:11, Ted Neward wrote:

>
> Question: has anybody heard of an LLVM->JVM bytecode translator? Or a
> Java-to-LLVM compiler? Seems like there might be some synergy there,  
> to my
> untrained eye....
>
> Ted Neward
> Java, .NET, XML Services
> Consulting, Teaching, Speaking, Writing
> http://www.tedneward.com
>
>
>> -----Original Message-----
>> From: [email protected] [mailto:jvm-
>> [EMAIL PROTECTED] On Behalf Of Szegedi Attila
>> Sent: Wednesday, November 07, 2007 9:23 AM
>> To: [email protected]
>> Subject: Re: [gabble] Kaleidoscope: Implementing a Language with LLVM
>>
>>
>> THANK YOU!!!
>>
>> Seriously, sometimes timing of things is just unbelievable... I'm
>> recently toying with implementing a native Mac OS X app, and it'd  
>> need
>> to be able to generate code for fastest possible calculation of user-
>> supplied mathematical formulae. I've been looking at the LLVM (since
>> it ships in Leopard anyway) last friday, but it was a bit hard to get
>> the initial grasp on it. And then, five days later, this message pops
>> up here. Guess I'm lucky :-)
>>
>> Attila.
>>
>>
>> On 2007.11.07., at 17:44, David Pollak wrote:
>>
>>> This isn't directly applicable to the JVM, but I thought you guys
>>> might be interested.
>>>
>>> ---------- Forwarded message ----------
>>> From: Chris Lattner < [EMAIL PROTECTED]>
>>> Date: Nov 7, 2007 8:41 AM
>>> Subject: [gabble] Kaleidoscope: Implementing a Language with LLVM
>>> To: [EMAIL PROTECTED]
>>>
>>>
>>> Hi All,
>>>
>>> I whipped up a little tutorial on implementing languages with LLVM.
>>>
>>> It starts out rudimentary (writing a lexer and recursive descent
>>> parser), then talks about adding LLVM codegen support, hooking in  
>>> the
>>> JIT, adding optimizations, etc:
>>>
>>> http://llvm.org/docs/tutorial/
>>>
>>> Thoughts and comments appreciated,
>>>
>>> -Chris
>>>
>>> http://llvm.org


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to