[llvm-commits] [PATCH] Additions to C-bindings

Kenneth Uildriks kennethuil at gmail.com
Wed Oct 7 14:42:00 PDT 2009


On Wed, Oct 7, 2009 at 4:04 PM, Eric Christopher <echristo at apple.com> wrote:
>>>>
>>>
>>> I wanted to call them from generated code and from my language.
>>>
>> Not only do I want to end up with a self-hosting compiler, but the
>> design of my compiler requires that much of the code generation code
>> is actually generated and JITted when the compiler is running.  This
>> code generation code need to call a C interface to do its work.
>
> This seems... odd. I'm not quite sure what you're doing, but language
> bindings for your language would seem to be a better solution.

By "language bindings" are you suggesting that I create a C++ module
exposing my own C bindings and call that module from my language?
Because calling the LLVM C++ API directly is problematic.

Since the C bindings exist for that same purpose, I figured adding to
them would benefit others as well.




More information about the llvm-commits mailing list