-
The Type, Obj and Node data structures seem to have a pretty different semantics in widcc than in chibicc.
What is the correct way to :
1. iterate over all parameters of a function,
2. iterate …
-
nmap compiled by chibicc , during nmap test crash with malloc corrupted :
./nmap -d --datadir . --script=unittest --script-args=unittest.run
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-10-18…
-
There are really two steps here:
1. Get the project to a point where `chibicc-uxn.exe` (running in Windows/Linux/etc) can compile the codebase to `cc.rom`, and this `cc.rom` can compile something F…
-
Todo:
- [ ] check stack offsets and stack alignment; hint: we do not use a frame pointer
- [ ] implement conv and cast operations
- [ ] implement `case` statements
- [ ] implement type specific …
Araq updated
2 months ago
-
with __GNUC__ defined at execution postgres failed with invalid value for parameter "max_stack_depth": "2048". It's caused by __builtin_isnan not yet implemented with chibicc
-
Hi,
I'm adding a LoongArch backend to chibicc and making some progress,
treated the porting process of chibicc as a learning process about the LoongArch assembly and compiler.
Anyone interested i…
-
パーサーやAST定義、ジェネレーターなどのファイルたちをどのディレクトリに置くのか、ディレクトリ名はどうするのか
-
I am trying to use chibicc with some tool that generates C code with empty structs and I get some assertions when compiling, here is a small test case:
```c
typedef struct empty_struct {} empty_st…
-
In `a.c`:
```c
#define X typedef int unused; Y
#define Y
X
// comment
#include
```
`chibicc -c a.c`:
```
a.c:5: #include
^ variable name omitted
```
`chibicc -E a.c`:
…
-
```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…