Sehr geehrter Herr fredvs,

Sie schrieben am Mon, 3 Dec 2018 03:27:53 -0600 (CST):

> Many thanks for that **clear** explanation how the OS work when a program
> close and what appends with the "memory leak".
> 
> But the question was about what appends **inside** the program-process
> (all what appends before the program close).

Well, I think that nothing will append anything to anything else within the
program, if no memory has been requested from the OS to append to its local
pool. And when the program closes, what do you think should specifically
happen to anything _within_ the program that affects anything still
noticable? When the program closes down, it ceases to interact with its
environment, and so it may do whatever the programmer deemed useful or
neccessary, without any external effect.

> This to try to understand why with fpc, for big project like compiling fpc
> him-self, the memory used do not stop to increase and the speed of
> compilation  decrease.

I cannot see what relevance your question has to this. Memory "used" by
the program as reported by an OS function does _not_ in any way relate to
anything happening _within_ the program - specifically it does not relate
to the degree of internal use of the allocated memory. You might gain
access to that only through the use of debugging or reporting functions
built into the program itself, i.e. by "instrumenting" the program
accordingly.

If you're wondering whether fpcs (internal? external?) use of memory does
not increase and the speed of compilation does not decrease, then this
might - will - be due to careful memory management and thoughtful code
optimization. After all, it depends the least on anything going on when
it's done with its task an closing down to finally exit.

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------




_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to