[fpc-devel] ARM patch to switch to controller records rather than arrays

Florian Klämpfl florian at freepascal.org
Sun Aug 21 21:39:48 CEST 2011

Am 21.08.2011 01:35, schrieb John Clymer:
> DIFF attached for comment and review.  Provides the following features /
> difference:
> 1) Switched operation of cpuinfo.pas - there is still a SET containing
> the ct_ constants, but that now indexes an array of structures rather
> than a collection of arrays.  The array contains the info from the old
> arrays, PLUS FLASH, SRAM and EPROM memory definitions i.e. BASE and SIZE
> for each.
> NOTE:  Switched for both ARM and AVR.  AVR changes will compile the
> cross compiler, but choke while building the RTL  (complaining about a
> function being too complex). However, the SVN and daily build exhibit
> the same behaviour - so I do not believe I have broken the AVR any
> further than it was broken.

tcontrollerdatatype should be declared only once.

> 2) Added LM3FURY controller unit file - this will be built up into a
> base unit file for all the Fury class Stellaris controllers.

The file is missing.

> 7) IF controllerunitstr is empty - then no added file is included in the
> build (again, to support a "base" controller type - with no defines what
> so ever - power user option)

This should be boundy to some controller type like dummy else beginners
will stumble on it.

Besides this, the patch can be applied imo.

More information about the fpc-devel mailing list