slimcc
slimcc copied to clipboard
C11 compiler with GNU extensions for x86-64 Linux, working towards C23
With the test: ```C #include #define TEST(_arrsz, ...) \ do { \ int (*p)[_arrsz]; \ p = (void *)0; \ do { \ __VA_ARGS__ \ } while (0); \ printf("ptr:...
This PR specializes every keyword tokens into independent kinds, reduces each keyword token string comparison to once per compilation, in other words, keywords will be identified in tokenization phase.
I'm playing with some changes for making the parser more error-tolerant, so it does not fail on first error (by keeping a list of emitted diagnostics during parse), adding an...
From an example in C standard under `Compatible type and composite type`: ``` EXAMPLE Given the following two file scope declarations: int f(int (*)(char *), double (*)[3]); int f(int (*)(char...
Hi, When I try to build on GitHub Actions, the project works fine. It can compile the C output of my compiler! Very cool. When I try to build and...
With inline asm implemented, we might be able to tackle the BSDs and other POSIX-compatible systems.
This would be useful for build systems which may wish to extract additional info from the compiler: - Get target triplet via `slimcc -dumpmachine`, in the form of `x86_64-pc-linux-gnu`, etc,...