I tried to adapt tgc for compilation under cc65. This C compiler doesn't support floats, so all I really did was "convert" all ops involving floats to properly scaled divisions or numbers - this part shouldn't be a problem (I guess...)
The problem is that inside the first tgc_alloc the control reaches tgc_mark_stack, where it is stuck inside this loop forever:
if (bot < top) {
for (p = top; p >= bot; p = ((char)p) - sizeof(void)) {
tgc_mark_ptr(gc, *((void**)p));
}
}
Could it be due to 8-bit architecture of the platform or rather anything I've messed up?
Hi,
I tried to adapt tgc for compilation under cc65. This C compiler doesn't support floats, so all I really did was "convert" all ops involving floats to properly scaled divisions or numbers - this part shouldn't be a problem (I guess...)
The problem is that inside the first tgc_alloc the control reaches tgc_mark_stack, where it is stuck inside this loop forever:
if (bot < top) { for (p = top; p >= bot; p = ((char)p) - sizeof(void)) { tgc_mark_ptr(gc, *((void**)p)); } }
Could it be due to 8-bit architecture of the platform or rather anything I've messed up?