Due to the niche nature of the platform and a small resulting availability of development time, the toolchain has some known bugs. These are listed here, complete with workarounds.
Far function pointers
In some cases, when calling pointers from arrays of far function pointers in optimization modes >=
the code will be miscompiled. This is a known issue, with no ETA for a fix.
One can work around this by annotating the affected function to be compiled without optimizations: