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! 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. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060418/fbd87b68/attachment.html>
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/
Hi, Chris Lattner wrote:> if there is serious interest, many people would like an easy to use C > wrapper around the LLVM API's. > > ... > > This is a way that those with "C++ Allergies" could band together and > help each other out :)I'm hoping the PyPy effort will see the start of a C interface to LLVM that can be filled out as others need more bits. I'm another one that's +1 for a C interface. :-) Cheers, Ralph.