[cfe-dev] clang/C# on LLVM

Richard Smith richard at metafoo.co.uk
Fri Apr 27 15:59:29 PDT 2012

On Fri, Apr 27, 2012 at 11:56 AM, Sebastian Redl <
sebastian.redl at getdesigned.at> wrote:

> On 27.04.2012, at 19:43, Madrigal, Juan A wrote:
>  Hi,
>  Just out of curiosity has the possibility of brining in C# support
> (minus .Net) to clang/LLVM been discussed?
>  Here's and interesting project:
> http://blog.prabir.me/post/LLVM-e28093-Native-C-Compiler.aspx
>  Thoughts?
> While a C# -> LLVM compiler is an interesting project (though hard -
> there's a lot of runtime library stuff that you would have to reimplement
> if you forsake existing .Net implementations), Clang has nothing to do with
> it. C# is sufficiently different from the core C family that there's really
> no point in trying to reuse Clang.

I agree that extending Clang to parse C# is unlikely to be a natural fit;
C# is a very distant cousin of the C language family, and there are enough
significant differences that a separate compiler would probably be cleaner.
However, if we wanted a C# compiler to be part of the LLVM project, it
might make sense to make available certain parts of clang for its use (such
as the source manager, diagnostics system, and driver infrastructure, and
possibly the lexer). Most of these are components which could also be
beneficially shared with other LLVM subprojects (lld, for instance).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120427/7f85c857/attachment.html>

More information about the cfe-dev mailing list