3 ms·
CC65 is just not a very good compiler by modern standards. There's an experimental 6502 backend for LLVM that outputs fairly good code. (A Z80 backend also ex
by zozbot234 4y ago
CC65 is just not a very good compiler by modern standards. There's an experimental 6502 backend for LLVM that outputs fairly good code. (A Z80 backend also exists, AIUI.)
- AlexeyBrin 4y agoDo you know if the 6502 LLVM backend has floating point support ? A big problem with CC65 is the lack of floating point support. EDIT: The answer is no: https://github.com/llvm-mos/llvm-mos-sdk#notably-missing-features https://github.com/llvm-mos/llvm-mos-sdk#notably-missing-fea...
- royjacobs 4y agoWhat kind of stuff do you want to do on a 6502 that requires emulated floating point support?
- AlexeyBrin 4y agoIt is nice to have, most BASIC versions that run on 6502 micros have floating point support.
- zozbot234 4y agoThe "floating point" support that's in 6502 BASIC ROMs is not real IEEE 754 floating point though, see https://en.wikipedia.org/wiki/Microsoft_Binary_Format https://en.wikipedia.org/wiki/Microsoft_Binary_Format So it shouldn't be used to replace that, though of course one can use it for other purposes with some care. (It goes without saying that this is not hardware floating point, so the only potential gain from piggybacking on these ROM routines will be some saving in code size.)
- diydsp 4y agoI wouldnt mind generating lookup tables at run time rather than my present system of exporting them via python etc... the algs could be more dynamic!
- galangalalgol 4y agoSo maybe someday we could do rust for the c64?
- ipaddr 4y agoThe people old enough to want to program on the c64 are not the same group of younger hipster who want to rustify the world. It would take someone to bridge these groups.
- zozbot234 4y agoYup, it's fun to think that the rust_embedded ecosystem could be repurposed with comparable ease to support bare-metal retro programming. Similar to how Rust itself bridges the "low-level C/C++" and "hipster high level language" worlds.
- galangalalgol 4y agoI guess I'm an old hipster that wants to rustify the world? I started on c64 basic as a tiny kid.
- mysterymath 4y agohttps://llvm-mos.org/wiki/Rust https://llvm-mos.org/wiki/Rust