Does C have a function loaded into memory the first time it is called or when the program starts? And can it be unloaded from memory?

For example:

If I have a function with a name void Does_Stuff(int arg)and call it in the main function, then the empty content is loaded into memory ONLY on the first call? Or is it loaded into memory during program initialization?

And after you called Do_Stuff basically, can I manually unload it from memory?

For reference, the operating system in which I run is Windows 7, and I compile it using MinGW.

+4
source share
4 answers

( , ), , C " " . , "".

, , , , , "" , . . , . , C " ".

+6

DLL, , , . *.exe - .

+2

, , , , . , , ( ), .

, , ( , ), , ( ).

+1

(, DOS) . , (, UNIX). , 4 . , , (.. ). , . .

, , , , , , mmap.

+1

All Articles