[fpc-pascal] Pascal and static executable
idokan at gmail.com
Mon Jul 18 10:03:09 CEST 2011
I'm writing an article about modern (Object) Pascal, but there is one
subject that I do not fully understand (for the article that is :)) and I
wish to be prepared for it.
Let's say that I write the following code:
This code is not linked to any shared library and therefor consider to be
static linked. However if I write the following code:
They both have the same size and the same memory footprint.
So what exactly is going on ? Why does Pascal compiler generate static
linked executable while C/++ compiler will generate dynamic executable ?
What are the benefits in this approach and what are the bad things with it ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal