FastC
A safe C-like language that compiles to C11.
FastC is a source-to-source transpiler that emits standard C11 code. It removes common C footguns while keeping the C toolchain, ABI, and performance model intact.
Features
- Safe by default - Null safety with
opt(T), bounds-checked arrays, explicit unsafe blocks - C11 output - Works with any C compiler (gcc, clang, MSVC)
- Zero runtime overhead - No garbage collector, no hidden allocations
- C interop - Call C functions, expose APIs to C, use existing libraries
Installation
# Build from source
# Or build the workspace
Usage
# Compile FastC to C
# Generate header file
# Build and compile to executable
# Build and run
Example
// hello.fc
fn -> i32
Documentation
License
This project is licensed under the MIT License.