[fpc-devel] Arm Thumb2 - Stellaris status

Geoffrey Barton mrb at periphon.net
Fri Aug 19 10:33:43 CEST 2011

On 19 Aug 2011, at 09:19, Florian Klämpfl wrote:

> 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?

because one is forever re-compiling the compiler when one switches to a device with a new peripheral, and if your main activity is not compiler development but product development one has to go back and find out how to do it each time. Better that the core stays the same.

> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel

More information about the fpc-devel mailing list