Skip to content

foxcraftDL/EFICS-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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.

Key Features (v1.2.0 Stable)

  • Ultra-Minimalist Footprint: The compiler executable is only 8.5 KB, optimized for extreme efficiency.
  • Zero-Padding Engine: Generated .efi binaries 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.Print calls.
  • Zero-Dependency Build: Can be compiled using the legacy csc.exe included in Windows 10/11.

Why EFICS?

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.

Quick Start

  1. Compile the compiler:
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe EficsCompiler.cs
    

Create your script (boot.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

License

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

About

Warning: THIS SOFTWARE IS IN BETA MODE, SO IT CAN HAVE BUGS

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages