[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: shared libraries and memory



On Sun, 02 Jul 2006 00:37:04 +1000, David Timms wrote:

> Mike - EMAIL IGNORED wrote:
>> When I use a shared library, is it all in memory,
>> or is only the object code currently in use in
>> memory?  I ask because I have some object code
>> that will be used only rarely.
> Are you asking whether if you have a 1 MB .so library loaded whether 
> just the functions you are calling get loaded into memory or the whole 
> .so file ?
> {I don't know the answer!}
> DaveT.

Yes. Additionally, when the exe using the function exits and
no other exe is using it, is the memory freed?
Mike.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]