nullC is a C Compiler for the Microsoft Common Language Runtime (CLR). nullC implements a subset of the C language to convert programs written in C to MSIL (Microsoft Intermediate Language).
nullC consists of the following components:
FrontEnd
> Syntax and Semantic Analysis
> Parsing
> Intermediate Language Generation (HIL)
Optimizer
> Optimizes the HIL code. (Constant Folding, Dead Code Elimination )
CodeGen
> Translation from HIL to MSIL
Microsoft ILAsm.exe is used to assemble MSIL generated by nullC to an executable image (PE).
Download nullC Source Code (Zipped 178KB)
Authors
Ajith Kumar (Syntax Analysis & Parsing)
Mahesh Sarma (Semantic Analysis & HIL Generator)
Praveen P P (Integration)
Sreejith S (MSIL Generator)
Vijay Thampy (Optimizer)
Authors can be reached at nullcproject_at_gmail_dot_com
Reference
“Compilers: Principles, Techniques and Tools” - Aho, Sethi, Ullman
CIL Specification http://msdn.microsoft.com/net/ecma/