Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2014-08

avr-embedded

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Reply by email

Michael Ring
to Schindler Karl-Michael

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 file

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

Michael

Schindler Karl-Michael wrote 14 lines
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 - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email