[cfe-dev] clang/C# on LLVM
richard at metafoo.co.uk
Fri Apr 27 17:59:29 CDT 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:
> Just out of curiosity has the possibility of brining in C# support
> (minus .Net) to clang/LLVM been discussed?
> Here's and interesting project:
> 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...
More information about the cfe-dev