EtchedPixels / FUZIX

FuzixOS: Because Small Is Beautiful
Other
2.16k stars 271 forks source link

cpp failure on 8080 #1029

Closed EtchedPixels closed 11 months ago

EtchedPixels commented 1 year ago

The C preprocessor blows up if built with the 8080 compiler but is fine with the 8085 one. Need to nail down what is probably a compiler bug

EtchedPixels commented 11 months ago

Trigger is local variables a long way from SP. Possibly mishandling of offsets > 256 or some kind of bug on exactly 256. Making the relevant buffer static results in the 8080 compiler being able to compile a working cpp.

EtchedPixels commented 11 months ago

Linker then fails to find stuff like _main so there is more afoot

EtchedPixels commented 11 months ago

Fixed.. compiler bug in 8080 mode with large stack offsets. 8080 can now build 8080 C code