[fpc-devel] avr-embedded

Michael Ring mail at michael-ring.org
Thu Aug 14 11:14:50 CEST 2014

Here's an overview about important files, based on what I know from the 
arm/mipsel targets:

fpc/compiler/avr/cpuinfo.pas        //Here you add new controllers
fpc/compiler/systems/t_embed     //Linker scripts, new controllers need 
to also get added here
fpc/compiler/systems/i_embed     //I guess no changes are needed in this 

fpc/rtl/embedded/avr/                  //rtl directory for startup code 
and register definition unit(s)

fpc/rtl/embedded/rtl.cfg                //Here you define what will go 
into the rtl for avr. Add features that go into the rtl; codesize is an 
important thing to watch for. Not sure which units compile for avr.

fpc/rtl/embedded/Makefile.fpc       // When you add new controllers that 
need new register definitions than you will need to add the unit to the 
makefile.fpc and then run fpcmake


Am 13.08.14 um 17:40 schrieb Schindler Karl-Michael:
> Hi.
> I tried to understand where to continue the development of the avr-embedded target, but got stuck.
> I know that the architecture-specific files are under compiler/avr and rtl/avr (the latter do not seem to be relevant, yet) and someone (fpk?) mentioned strings in the past, but that is basically it.
> Could someone give my some hints, like more details about the task, corresponding files or solutions for other platforms?
> Michael aka MiSchi
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140814/6307c5a8/attachment.html>

More information about the fpc-devel mailing list