[fpc-devel] Stellaris Update

Florian Klämpfl florian at freepascal.org
Tue Aug 16 12:40:38 CEST 2011


Am 16.08.2011 12:16, schrieb John Clymer:
> Stellaris ALWAYS has the Code starting at $0000:0000.
> 
> STM32's do something odd where the FLASH starts at $0800:0000, and the
> memory between $0000:0000 and $07FF:FFFF is mappable to either the FLASH
> or the built-in boot loader.  (Which throws a kink in the works.)
> 
> But, as far as the point of catching the 90% of possible uses - one
> could drop down to strictly {$FLASH_SIZE} and {$SRAM_SIZE}. 
> 
> The other option (unless one wants a gazzillion items on the case()
> statements in t_embed.pas)

Better than some wrecked programs because somebody put a wrong
FLASH_SIZE/SRAM_SIZE somewhere. Pascal tries to prevent the user to
shoot himself into the foot. *_SIZE /*_START is a good possibility to
shoot oneself into the foot while if it is once put into the compiler,
it just works.



More information about the fpc-devel mailing list