[fpc-devel] Arm Thumb2 - Stellaris status

Florian Klämpfl florian at freepascal.org
Fri Aug 19 10:19:05 CEST 2011


Am 19.08.2011 05:28, schrieb John Clymer:
> Currently, everything is in a handful of giant arrays.  Just wondering
> if it would be better to switch to a record structure for the controller
> entries - rather than individual arrays.  (Add in a variety of STM parts
> and the other manufacturers, and there could easily be over 100 memory
> configurations in the table.)

Maybe it's indeed better to have an array of records, each record
describing one controller.

> 
> My suggestion would be that the register definitions come in an UNIT
> file that only defines registers.  The controller unit in the compiler
> source would only provide the bare minimum necessary to bring the system
> up and call PASCALMAIN.  However, if it is deemed better to have the
> entire register set defined inside the RTL - that would be fine too.

Well, isn't it for a user easier just to pass the controller he uses on
the command line and the compiler does the rest? Why bother with
addional uses etc. if the compiler knows already anything?



More information about the fpc-devel mailing list