[fpc-pascal]FPC Overheads

James Mills prologic at prologitech.com
Wed Apr 16 14:13:53 CEST 2003


On Wed, Apr 16, 2003 at 01:23:24PM +0200, Jonas Maebe wrote:
> 
> On woensdag, apr 16, 2003, at 13:13 Europe/Brussels, James Mills wrote:
> 
> >Can anyone help me out here, as I'd like to know why the overheads are
> >48Mb ...
> 
> If you allocate memory, then then the total memory reserved for your 
> application increases. There is nothing FPC-specific about this and 
> FPC-compiled programs don't occupy 48MB of memory by default.

Well as far as the code is concerned, everything is allocated
dynamically during run-time. Why then would there be a 48Mb overhead ?
ps says that it's using 48Mb overhead and 2.8Mb of data...

Any further comments ?

> 
> >Also what are some good ways of tracking down memory leaks in your
> >program ?
> 
> Compile the program and its units with -ghl. When exiting, it will 
> print out a list of not freed memory blocks.

Thanks, I'll do that...

cheers
James

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



More information about the fpc-pascal mailing list