All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Chibil: A C compiler for .NET IL based on chibicc, capable of running DOOM

By

MichalStrehovsky

10h ago· 2 min readenCode

Summary

Chibil is a C compiler written in C# that targets .NET IL (MSIL), based on the chibicc compiler. It is complete enough to compile and run DOOM (PureDOOM). The compiler takes C source files and generates COFF OBJ files that are binary-compatible with MSVC's /clr mode, allowing mixing with C++/CLI object files. Visual Studio's link.exe is used for linking, though a custom linker may be developed later.

Key quotes

· 5 pulled
Chibil is a C compiler based on chibicc rewritten in C# and updated to target .NET IL (MSIL).
It is complete enough to run DOOM (PureDOOM).
These OBJ files are binary-compatible with OBJ files produced by the MSVC compiler in /clr mode.
One can actually mix and match C++/CLI and chibil-produced object files.
Chibil will probably have its own linker later, if for no other reason, just so we don't
Snippet from the RSS feed
C compiler for .NET. Contribute to MichalStrehovsky/chibil development by creating an account on GitHub.

You might also wanna read