[fpc-devel] AVR - assembler error when compiling large files

Christo christo.crause at gmail.com
Thu Nov 30 21:22:55 CET 2017


On Tue, 2017-11-28 at 20:08 +0100, Florian Klämpfl wrote:
> What command line do you use?

Also note that not specifying debug info (no -g) there is also no problem compiling
atmega32u4.pp:
ppcrossavr -Cpavr5 @rtl.cfg -Ur -Tembedded -Pavr -XPavr- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../avr
-FE. -FU../../rtl/units/avr-embedded -davr  -dRELEASE avr/atmega32u4.pp 

For testing purposes two files can be found here: https://github.com/ccrause/fpc-avr/tree/master
/src/rtl-avr-modifications/embedded/avr

The atmega328p.pp file compiles with the default settings in the make file, while atmega32u4.pp
doesn't compile/assemble properly with -g.



More information about the fpc-devel mailing list