-
As I understand it, we can't support stuff like `int *b = &a + 1;` because uxnasm has no way to express this, but `int *b = &a;` seems doable maybe?
-
Changing this breaks stuff though 🤔
-
Currently, everything on the working stack and the "stack frames" is 2 bytes, and a `char` is just stored as an `int` (by putting a `00` byte in front of it).
The problem with this is that in `void…
-
The version of `uxnasm` included in the macOS binary release at https://100r.co/site/uxn.html doesn't accept the output from this compiler right now:
```
$ gcc -I. -P -E examples/day3.c -o tmp.c
…
-
These two functions should behave the same, but don't:
```c
char foo(void)
{
return -1;
}
char bar(void)
{
return 0xff;
}
void main(void)
{
int f = foo();
int b = bar();…
-
These aren't supported:
```c
int x[2] = {1, 1};
int *y = x;
// or more commonly...
char *message = "hi";
```
The compiler will complain `unsupported label+addend`.
chibicc writes
```c…
-
After having a look at the cross9 gcc from https://justine.lol/cosmopolitan/windows-compiling.html it occurred to me that we should be able to compile Cosmopolitan libc itself on Windows. The main mis…
-
I tried to compile the hello world program with [tcc](https://bellard.org/tcc) but it does not support some
parameters. I don't know what they stands for and am sure they are important but
I remove…
-
Hi,
First I'd like to say thanks for this great repo! Is is possible to buy your book in e-book (or any other computer readable format, eg. not on paper)?
I've found a bug in your code generatio…
-
```c
int i = 2;
return i + ++i * i++;
```
this code return different value with different compiler:
clang : 11 = 2 + 3 * 3
gcc : 16 = 4 + 4 * 3
chibicc : 12 = 4 + 4 * 2
caused by here:
a…