Help porting newlib to a new CPU architecture (sorta)
Paul Koning
paulkoning@comcast.net
Tue Jul 6 23:50:00 GMT 2021
> On Jul 6, 2021, at 6:00 PM, Joel Sherrill <joel@rtems.org> wrote:
>
> I think you might get some ideas from the old m6809 port of gcc
>
> http://vectrexc.malban.de/documentation/gcc-6809-documentation
>
> That was an 8 bit CPU with only 64k memory space if I remember everything
> correctly.
pdp11 also has 64k of address space, and the current gcc still supports it.
> I think given an add with carry, gcc can be taught to use 8 bit operations
> in sequence on larger types. I recall seeing this on the h8 or avr.
pdp11 also, for 32 or 64 bit integers given 16 bit arithmetic. You don't actually need add with carry, but having one makes the code more compact. I think gcc core will do that flavor if the target code doesn't teach it the more efficient way (which is easy to do).
paul
More information about the Newlib
mailing list