Visitar URL original
GitHub - alt-romes/c-compiler: Why am I writing another C to LLVM compiler · GitHub
Skip to content

About

Why am I writing another C to LLVM compiler

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Another C to LLVM Compiler

This is a C to LLVM compiler written in C.

The supported features can be seen by examining the parser (yacc) file, because the unsupported features are still commented in the parser, while all other "parseable" features are complete.

A broad range of the features have associated tests under /compiler-tests

It already supports compilation of this program:

void* (*f(void* (*(*p)(int (*)[2]))[]))[] {

    int y[2];
    void* (*x)[] = (void* (*)[])p(&y);
    return x;
}

About

Why am I writing another C to LLVM compiler

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages