-
```cpp
struct S { unsigned long long int b:32; } s;
void f()
{
s.b = 0;
}
```
Trying to compile this results in this error:
```
/tmp/chibicc-0G8AuI: Assembler messages:
/tmp/chibicc-0…
-
在commit 44 **处理代码块域**中, rvcc是不支持一个作用域中同名标识符声明的冲突检测的, 比如下列情况可以正常运行
```c
ASSERT(4, ({ int x=2; int x = 4;{ int x=3; } int y=4; x; }));
```
我往后看写一些(只看了一点), 没看到这个问题的解决
不过我想这个只需要在当前的`scope`中遍历下是否声…
-
compiling util-linux failed with variable has incomplete type on union variable
sys-utils/ipcrm.c:79: union semun arg;
^ parse.c: in declaration : variable has in…
-
As title.
I think that requires a lot of work because python have a lot of different build tool.
-
Is there any interest in supporting other platforms? To avoid running into #21, I've tried to build `int main(void) { return 10; }` on FreeBSD, but the outcome of that is not a complete solution - see…
-
I just discovered a bug in hashmap.c, which I found quite surprising as I'd been using it for quite a while and on some pretty large codebases!
I think the logic for `TOMBSTONE` is incorrect which …
-
Hi there!
I'm adding a RISC-V backend to chibicc and have made some progress. Just in case anyone is interested, I would like to mention this work here. The commit history of this fork is (almost) …
-
bash-4.3$ ./chibicc -o hello-world hello-world.c
/usr/include/stdio.h:33: # include
^ stddef.h: cannot open file: No such file or directory
bash-4.3$ gcc --pr…
-
While testing `xcc` with https://github.com/FransFaase/RawParser/blob/master/src/RawParser.c I noticed that it gives a different output than `gcc`:
```
./rawparser.gcc
OK: parsed white space
OK: p…
-
This code does not compile:
```
int fun(int n, int a[n]);
```
Cmd: `chibicc x.c -c`
Error:
```
x.c:1: int fun(int n, int a[n]);
^ undefined variable
```
This is…