MazuCC
MazuCC copied to clipboard
Passing structs with size > 8 throws "Unknown data size" error
Could you tell me what the code you input to MazuCC? I have a different result, my command like that:
$ cat sample/test.c
struct abcd {
int a;
int b;
int c;
int d;
} abcd;
$ ./mzcc < sample/test.c
.data # emit_data_section:724
.lcomm abcd, 16 # emit_global_var -> emit_bss:709
try passing an instance (not a pointer) of abcd to a function
Thanks, I got it.