[LLVMdev] MSIL backend
Jeff Cohen
jeffc at jolt-lang.org
Thu Mar 22 16:00:55 PDT 2007
Chris Lattner wrote:
> On Thu, 22 Mar 2007, Jeff Cohen wrote:
>> The problem is worse than I thought.
>>
>> MSIL, and .NET in general, defines a specific object model. This object
>> model is explicitly part of MSIL semantics. LLVM is at a lower level;
>> it does not have an object model. To do a virtual call, LLVM
>> instructions must be generated to load a function pointer from a vtable
>
> Unlike Java, MSIL support 'unsafe' operations, which include fully
> general pointer arithmetic, casting, etc. In this mode, you don't
> need to use its support for object models at all,
>
> -Chris
Yes, but what's the point of generating MSIL that cannot use libraries
for the .NET platform?
Why not just generate native code in the first place?
More information about the llvm-dev
mailing list