[LLVMdev] n00b question: From module/bitcode to Mach-O dylib file directly?

Eric Christopher echristo at apple.com
Sun Mar 15 18:38:47 PDT 2009


On Mar 15, 2009, at 4:23 PM, Luke Evans wrote:

> I had passed over ExecutionEngine as it looked like it offered a  
> JIT.  Maybe there's more to it than meets the (hasty) eye though.
>

It does...

> I'm interested in getting a native image.  Ultimately, I'd like to  
> do things like emitting Objective-C IMPs and building Objective-C  
> classes around them.
> However, I'm going one step at a time (there's probably much to  
> learn and maybe gotchas to discover before I get to this).
> To begin with, I figured I'd try to get a Mach-O file written out,  
> dload'ed and then make a regular C call to a loaded function.
>

Aaah. Wasn't quite sure what you were doing here. I'm not positive  
what llvm can emit via the writers (there's support for all parts of  
the file format), but it could be extended to write one out. I'm just  
not quite sure why :)

-eric



More information about the llvm-dev mailing list