Help porting newlib to a new CPU architecture (sorta)

Paul Koning
Tue Jul 6 23:50:00 GMT 2021

> On Jul 6, 2021, at 6:00 PM, Joel Sherrill <> wrote:
> I think you might get some ideas from the old m6809 port of gcc
> 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).


More information about the Newlib mailing list