Hsiang-Ying Fu
Hsiang-Ying Fu
I didn't find how to express allocation ownership without std2 on the documentation site, so I just played around blindly on godbolt. It seems that raw pointer checks can just...
The macro is only defined on gcc or clang: https://github.com/landley/toybox/blob/9cde5834249786ba5239774c787b5db3de1b6d97/lib/portability.h#L44-L54 For a compiler that doesn't define `__GNUC__`, it will be undefined when encountered here: https://github.com/landley/toybox/blob/9cde5834249786ba5239774c787b5db3de1b6d97/lib/net.c#L184 Adding a dummy define here...
Context: I work on a C compiler for x86-64 Linux, [slimcc](https://github.com/fuhsnn/slimcc). Despite very basic, barely `-O0` quality codegen, I've gotten several languages including Python, Perl, PHP to reliably build and...
With the test: ```C #include #define TEST(_arrsz, ...) \ do { \ int (*p)[_arrsz]; \ p = (void *)0; \ do { \ __VA_ARGS__ \ } while (0); \ printf("ptr:...
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...
With inline asm implemented, we might be able to tackle the BSDs and other POSIX-compatible systems.
chibicc is now [distributed](https://repology.org/project/chibicc/versions) in mainstream Linux package systems. It came to my attention that several distros package exposed a side effect of chibicc's method to search compiler-supplied headers: https://github.com/rui314/chibicc/blob/90d1f7f199cc55b13c7fdb5839d1409806633fdb/main.c#L52-L57...
I've been keeping a list of issues encountered while working on [my fork here](https://github.com/fuhsnn/slimcc/issues?q=is%3Aissue+is%3Aclosed+label%3Aupstream-chibicc), most of them have minimal repro and the fixing commit associated. To Rui, can't thank you...
This is with `posix.default_linker = linker_ld;`, as mentioned in https://github.com/muon-build/muon/issues/110 The test uses `cos()` in `lib.c`, hence has libm dependency. Comparing the log with slimcc and clang on the same...
Context as mentioned in https://github.com/muon-build/muon/issues/109. In investigating more test failures with slimcc, I encountered some test failures that were caused by crucial options, like `-Mx`, `-fPIC` and `-Wl,` linker flags...