I made a quick modification today and it seems doable to add these devices without much change. Compared the code generated for a basic test between modified FPC and avr-gcc with atmega4808 updated from latest update pack and the binaries seem to match quite well. A bit more effort is required to convert the register addresses and bit names from the definition file for the xmega style in the converter I use.
I can share a patch if you want to test the compiler with an actual device or simulator.
On Sat, Nov 3, 2018 at 7:34 PM Dimitrios Chr. Ioannidis via fpc-devel <
Show quoted text 14 lines