memory management - Deallocate / Free / Release Functions -


is possible deallocate function? have huge initialisation function gets run once, possible deallocate after called it, , use storage? i'm interested in c, feel free post other language if language offers interesting behaviour.

i understand functions aren't allocated on heap , cannot recycle memory, seem waste me.

there no way using language features.

but depending on system work on, os might on own normal memory management techniques. (but if so, "accident".)

let me explain bit: program gets mapped memory , run. code hasn't been used time thrown out of memory. data put swap area on disk in order able "recycle" later, code present in executable file , can fetched there if needed again.

of course, not happen on systems, linux , afaik windows works way.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -