Hsiang-Ying Fu

Results 36 comments of Hsiang-Ying Fu

>extra parameter in case of struct/union function returns The pointer is saved on stack space without making an extra parameter Obj*: https://github.com/fuhsnn/widcc/blob/a0bb0108ab4f6ed97556400b7bf298ec49bdc820/codegen.c#L1628-L1634 Because return struct pointer being the first parameter...

> 3.5 times slower than the executable generated from the same code using GCC -O2. It's... not unexpected, there are tons of dirty hacks in chibicc just to do correct...

`mem->name` will be null for unnamed bitfields too, for example this will trigger the newly added assert: ``` struct { int : 7; int foo; } s = {.foo =...

More weird stuff: https://godbolt.org/z/ff4TKaTxM Basically, you can trick `typeof` into executing anything by wrapping it inside a VM pointer type. ``` C #include void fn1(int i) { /* expression wrapped...

The behavior has been implemented for `sizeof` and `_Countof`: cf08c3d44c8212d3c70f5002b83424f854a98427. I'm going to put `typeof` on hold until a well established codebase is shown to rely on this pattern with...

With some workarounds for: https://github.com/muon-build/muon/issues/111 https://github.com/muon-build/muon/issues/112 I got slimcc to pass all tests by extending the default posix compiler a bit: ``` [user@archlinux muon]$ CC=~/slimcc/slimcc build/muon-bootstrap -C build test running...

Solved now with toolchain configuration (`src/script/runtime/toolchains.meson`), thanks!

A little survey done by simply bumping `ulimit -s unlimited` and monitor `./zig1 lib build-exe ...` with `memusage`. I'm not familiar with the tool so can't tell how accurate the...

Thank you for taking care of the situation. I tried the stack-size=16MB version of `bootstrap.c` in #22054 with system `gcc` and `"-Os"` changed to `"-O0"` to emulate less-optimal compilers (as...

> I wonder if there's some security hardening nonsense going on where the kernel refuses to give the program a larger stack because of `ulimit -s`? The result is without...