EtchedPixels / Fuzix-Compiler-Kit

Fuzix C Compiler Project
Other
49 stars 14 forks source link

Fixed typo in _castf primitives on Z80 that lead to linker errors #75

Closed danielgaskell closed 3 months ago

danielgaskell commented 3 months ago

The software floating-point library used on Z80 contains multiple primitives with double underscore prefixes, like

long __castf_l(uint32_t a1);

This compiles to three underscores in the object file, when the compiler only expects two, leading to "unknown symbol" errors when casting floats. Easy fix.

danielgaskell commented 3 months ago

(Actually, this looks like a problem with several other targets as well.)

__pluseqf etc. primitives are also missing.