LLVM Objective-C backend

Hello there,

LLVM has C and C++ backends, so I was wondering if there is any plan to add support to Objective-C. The reason for this question is that I have an Objective-C platform that I would really like to run under LLVM.

TIA,

  -- Sébastien

Its been talked about from time to time. There really isn't anything
stopping us from supporting it other than someone putting the time in to
modify llvm-gcc to support C and possibly implementing the required
runtime libraries for ObjC.

Patches welcome! :slight_smile:

Reid.

LLVM has C and C++ backends, so I was wondering if there is any plan to
add support to Objective-C. The reason for this question is that I have
an Objective-C platform that I would really like to run under LLVM.

I'd say, give it a try and see what breaks. None of us know ObjC
very well, so we haven't tried it. I'd start by following the
Getting Started guide. You'll need to build your own copy of llvm-gcc
to support ObjC; the only difference from the CFE Build Instructions
document would be (at least, as far as I know) to configure llvm-gcc
with --enable-languages=c,c++,objc .

We welcome any feedback (and especially patches to get ObjC to work).

-Brian

Adding to what Brian and Reid said, this should be really easy for someone who knows Objective C. At one point I did enable objective C in the C Frontend and verified that it built correctly. There may be minor bugs in it, but I suspect that it should be fairly close to just "working right out of the box".

-Chris

It's really good to know that it seems feasible - I will try to do as adviced, and compile my own version of llvm-gcc with objc support.

Thanks all,

  -- Sébastien