Here is the source code: #include <stdio.h> struct Vec3D{ int x, y, z; }; int cos(int x){ int result = 1; int term = 1; for (int i = 1; i <= 10; i++) { term = term * (-1) * x * x / ((2 * i) * (2 * i - 1)); result = result + term; } return result; } int sin(int x) { int result = 0.0; int term = x; for (int i = 1; i <= 10; i += 2) { result = result + term; term = term * -(x * x) / (i * (i + 1)); } return result; } struct Vec3D points[4]; int projection[2][3] = { {1, 0, 0}, {0, 1, 0} }; struct Vec3D...
I have narrowed it down to where it gives the fatal error when iterating over an array.
I only included stdio.h
This error only happens with the sdcc shipped with GBDK I have made been able to recreate this without the GBDK headers. If you would like I can give you my source code.
error 9: FATAL Compiler Internal Error