3 ms·
I'd love to see support for the 65c816/5A22, to allow targeting the SNES. Anyone know of Open Source compilers targeting that family of processors?
by JoshTriplett 10y ago
I'd love to see support for the 65c816/5A22, to allow targeting the SNES. Anyone know of Open Source compilers targeting that family of processors?
- astrange 10y agocc65 does support the NES: https://github.com/cc65/cc65 https://github.com/cc65/cc65 It might have an SNES mode too. Note that even the 65c816 isn't good enough to run most C and your "portable" C code probably isn't portable if int isn't 32 bits anymore!
- JoshTriplett 10y agoDoesn't look like it covers the SNES, unfortunately, but NES support helps. Rust recently gained support for systems with 16-bit integers and pointers, in order to support AVR. It'd be challenging, and some of the libraries might not work out of the box, but it's worth a shot. The much harder part would be supporting various memory windowing techniques.
- pcwalton 10y ago> Note that even the 65c816 isn't good enough to run most C At least they added stack-relative addressing, which is a huge improvement over the 6502.