XCC === [![Action Status](https://github.com/tyfkda/xcc/workflows/AllTests/badge.svg)](https://github.com/tyfkda/xcc) [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/tyfkda/xcc?quickstart=1) C compiler running on Linux or MacOS. * Supporting architecture: x86-64, aarch64 (arm64), riscv64, wasm * Binary format: ELF64 ### Requirements * Linux (or MacOS) * C compiler (gcc or clang) * make ### Build ```sh $ make ``` Generated files: * `xcc`: Compiler entry * `cpp`: Preprocessor * `cc1`: C compiler * `as`: Assembler * `ld`: Linker ### Usage ```sh $ ./xcc -o hello examples/hello.c $ ./hello Hello, world! ``` #### Command line options * `-o `: Set output filename (default: `a.out`) * `-I `: Add include path * `-D