EFICS Compiler v1.2.0 STABLE (EFI C-Sharp)
EFICS is an ultra-lightweight, zero-dependency compiler designed to transform high-level C# code into native UEFI (.efi) executables for x64 architecture.
Built entirely in C# 5.0, this tool allows developers to write "Bare Metal" code with the elegance of C# syntax, bypassing the need for the .NET Runtime or any operating system.
- Ultra-Minimalist Footprint: The compiler executable is only 8.5 KB, optimized for extreme efficiency.
- Zero-Padding Engine: Generated
.efibinaries are "pure" and contain only the necessary code and data, with no unnecessary bloat. - Master Instruction Set (110+): Full support for x64 arithmetic, advanced logic, stack manipulation, and extended registers (R8 through R15).
- Flow Control: Enhanced support for conditional jumps (
Je,Jne,Jg,Jl) and labels for complex loops and logic. - Integrated UEFI Protocols: Native support for GOP (Graphics), MOUSE (Pointer), and SFS (Simple File System).
- Unicode String Engine: Handles UTF-16 encoding automatically for
UEFI.Printcalls. - Zero-Dependency Build: Can be compiled using the legacy
csc.exeincluded in Windows 10/11.
EFICS bridges the gap between high-level logic and low-level hardware access, enabling:
- Custom Bootloaders: Load kernels and hand over CPU control.
- Recovery Utilities: Create graphical tools and disk repair systems that run before any OS.
- OS Development: Explore hardware interrupts and memory mapping using a modern, clean language.
- Compile the compiler:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe EficsCompiler.cs
using EFICS; using EFICS_variables;
class MyOS { static void Main() { UEFI.Print("EFICS v1.2.0 Loaded!"); CPU.Halt(); } }
Generate the EFI binary: bash EficsCompiler.exe boot.cs
This project is released under the MIT License. Free to use, modify, and distribute, provided the original copyright notice is preserved. Version: 1.2.0 (Stable) Compiler Size: 8.5 KB Author: [foxcraftDL] Platform: UEFI x86_64