[LLVMdev] Re: how to code a loop in llvm assembly
Chris Lattner
sabre at nondot.org
Mon Apr 17 21:11:04 PDT 2006
On Tue, 18 Apr 2006, Joseph Altea wrote:
> I also suffer from the same C++ allergy notably shoot in foot with
> dynamic grammers and overloading.. creates gasey code
> feeling..especially in the backend.. :)cheers!
I have no idea what this is supposed to mean: "creates gasey code
feeling..especially in the backend.."
However, if there is serious interest, many people would like an easy to
use C wrapper around the LLVM API's.
libjit, for all its flaws, seems to have a pretty reasonable C api, one
that would be trivial to implement with LLVM:
http://www.southern-storm.com.au/doc/libjit/libjit_toc.html
If someone wanted to write a libjit-compatible C interface, or something
completely different, but similar in spirit, it would be a very cool and
useful project, and would fit in naturally with the rest of the LLVM
libraries.
This is a way that those with "C++ Allergies" could band together and help
each other out :)
-Chris
> Simon Burton <simon at arrowtheory.com> wrote: On Sat, 15 Apr 2006 07:47:00 +0200
> Oscar Fuentes wrote:
>
>>
>> BTW, Simon, is there a reason for writing LLVM assembler and not
>> generating LLVM code directly?
>
> You mean write C++ code that calls the LLVM library ?
> I have a mild C++ allergy that I don't wish to aggravate.
>
>> The later is simpler and relieves you
>> from some nasty burdens.
>
> Yes, i'm finding it quite hairy!
>
> :)
>
> Simon.
>
>
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list