[fpc-devel]zeroing on program startup

Peter Vreman peter at freepascal.org
Mon Apr 23 09:29:23 CEST 2001


> Hello,
> 
>   Just wanted to know if there is some
>   FillChar (StaticData, SizeOf (StaticData), 0); in program startup
>   procedure exists... Just wanted to get rid of my own FillChar's and
>   "v:=0, v:=false" type things in unit initializations. BTW, if this
>   "global" FillChar () is implemented then it removes my problems with
>   interdependencies. :)

The program loader does zero the BSS section. It's a prerequiste for the compiler else
we'll implement it ourselves.








More information about the fpc-devel mailing list