NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Chibil: A C compiler targeting .NET IL (github.com)
whizzter 11 minutes ago [-]
The CLR model has always had support for instruction to support the C/C++ language, compile plugins or similar once and load/run on multiple platforms should be possible.

However, iirc there might've been some issues with libraries making the cl /clr code unportable (don't quote me on that though), starting from scratch might yield a better result if one just wants to run C code everywhere.

pjc50 29 minutes ago [-]
Note that Microsoft "cl /clr" also does this. It's a bit of a niche use case.
cxr 11 minutes ago [-]
The creator of lcc also published a paper "lcc.NET: targeting the .NET Common Intermediate Language from Standard C".

<https://drh.github.io/documents/msil-spe.pdf>

One problem with lcc has always been that it's distributed as source available with restrictions and has never been available under a FOSS license.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 17:38:40 GMT+0000 (Coordinated Universal Time) with Vercel.