Something went wrong. Try again.
A GCC-compatible C compiler written in Rust
Something went wrong. Try again.
Files
- Rust 96%
- C 4%
- Nix <1%
README.md
# Oxidized GCC
<!-- publish:begin -->
> Part of the [overby.me monorepo](https://tangled.org/overby.me/overby.me), where this lives in
> [`safety/oxidized/gcc`](https://tangled.org/overby.me/overby.me/tree/main/safety/oxidized/gcc) and where all development happens.
>
> It is also published on its own, as
> [tangled.org/overby.me/oxidized-gcc](https://tangled.org/overby.me/oxidized-gcc) and
> [github.com/overby-me/oxidized-gcc](https://github.com/overby-me/oxidized-gcc). Both
> are read-only mirrors, rebuilt from the monorepo with
> [josh](https://github.com/josh-project/josh): a commit made to either is
> overwritten by the next sync, so please open issues and pull requests on the
> monorepo.
<!-- publish:end -->
A GCC-compatible C compiler written in Rust, targeting x86-64, i686, ARM64, and RISC-V.
Based on [Claude's C Compiler (ccc)](https://github.com/anthropics/claudes-c-compiler) by Anthropic.
## Binaries
| Binary | Description |
|--------|-------------|
| `gcc` | Default (auto-detects target) |
| `cc` | Symlink to `gcc` |
| `gcc-x86` | x86-64 target |
| `gcc-i686` | i686 (32-bit x86) target |
| `gcc-arm` | ARM64/AArch64 target |
| `gcc-riscv` | RISC-V target |
## Usage in rust-nixpkgs
This package is intended as a drop-in GCC replacement for the Rust stdenv in nixpkgs. It includes a built-in assembler and linker, removing the dependency on GNU binutils for many packages.
## License
CC0 1.0 Universal (Public Domain) — see [LICENSE](LICENSE).