[cfe-dev] clang/C# on LLVM
samuel.li at spx.com
Fri Apr 27 19:03:21 PDT 2012
The idea is good
From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On Behalf Of Richard Smith
Sent: 2012年4月28日 6:59
To: Sebastian Redl
Cc: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] clang/C# on LLVM
On Fri, Apr 27, 2012 at 11:56 AM, Sebastian Redl <sebastian.redl at getdesigned.at<mailto: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: http://blog.prabir.me/post/LLVM-e28093-Native-C-Compiler.aspx
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