zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

README.md (904B) - Raw


      1 <img src="https://aro.vexu.eu/aro-logo.svg" alt="Aro" width="120px"/>
      2 
      3 # Aro
      4 
      5 A C compiler with the goal of providing fast compilation and low memory usage with good diagnostics.
      6 
      7 Aro is included as an alternative C frontend in the [Zig compiler](https://github.com/ziglang/zig)
      8 for `translate-c` and eventually compiling C files by translating them to Zig first.
      9 Aro is developed in https://github.com/Vexu/arocc and the Zig dependency is
     10 updated from there when needed.
     11 
     12 Currently most of standard C is supported up to C23 and as are many of the common
     13 extensions from GNU, MSVC, and Clang
     14 
     15 Basic code generation is supported for x86-64 linux and can produce a valid hello world:
     16 ```sh-session
     17 $ cat hello.c
     18 extern int printf(const char *restrict fmt, ...);
     19 int main(void) {
     20     printf("Hello, world!\n");
     21     return 0;
     22 }
     23 $ zig build && ./zig-out/bin/arocc hello.c -o hello
     24 $ ./hello
     25 Hello, world!
     26 ```