Re: [BLACKBOX] Variable instances in executables

From: [at]} <Bernhard>
Date: Sun, 13 Nov 2011 13:16:50 +0100

----boundary-LibPST-iamunique-278464283_-_-
Content-type: text/plain

>> In the following I talk about programs compiled and linked into
>> executables.
>>
>> Lets say modules A and B are main programs.
>>
>> Each one imports a third module C which declares a variable v.
>>
>> How many instances of v are there when A and B are running at the same
>> time?
>
> All running instances of all executables contain a copy of module C, each
> with its own variable v.
>

absolutely correct.

Even when module C is linked into a DLL, each runnung EXE will have its own
variable ...

regards
    Bernhard


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-278464283_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4+IEluIHRoZSBmb2xsb3dpbmcgSSB0YWxrIGFi
b3V0IHByb2dyYW1zIGNvbXBpbGVkIGFuZCBsaW5rZWQgaW50byBccGFyDQo+PiBleGVjdXRhYmxl
cy5ccGFyDQo+PlxwYXINCj4+ICBMZXRzIHNheSBtb2R1bGVzIEEgYW5kIEIgYXJlIG1haW4gcHJv
Z3JhbXMuXHBhcg0KPj5ccGFyDQo+PiAgRWFjaCBvbmUgaW1wb3J0cyBhIHRoaXJkIG1vZHVsZSBD
IHdoaWNoIGRlY2xhcmVzIGEgdmFyaWFibGUgdi5ccGFyDQo+PlxwYXINCj4+ICBIb3cgbWFueSBp
bnN0YW5jZXMgb2YgdiBhcmUgdGhlcmUgd2hlbiBBIGFuZCBCIGFyZSBydW5uaW5nIGF0IHRoZSBz
YW1lXHBhcg0KPj4gIHRpbWU/XHBhcg0KPlxwYXINCj4gIEFsbCBydW5uaW5nIGluc3RhbmNlcyBv
ZiBhbGwgZXhlY3V0YWJsZXMgY29udGFpbiBhIGNvcHkgb2YgbW9kdWxlIEMsIGVhY2ggXHBhcg0K
PiB3aXRoIGl0cyBvd24gdmFyaWFibGUgdi5ccGFyDQo+XHBhcg0KXHBhcg0KYWJzb2x1dGVseSBj
b3JyZWN0LlxwYXINClxwYXINCkV2ZW4gd2hlbiBtb2R1bGUgQyBpcyBsaW5rZWQgaW50byBhIERM
TCwgZWFjaCBydW5udW5nIEVYRSB3aWxsIGhhdmUgaXRzICBvd24gXHBhcg0KdmFyaWFibGUgLi4u
XHBhcg0KXHBhcg0KcmVnYXJkc1xwYXINCiAgICBCZXJuaGFyZCBccGFyDQpccGFyDQpccGFyDQot
LS0tXHBhcg0KVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9G
RiBCTEFDS0JPWCIgdG8gTElTVFNFUlZATElTVFMuT0JFUk9OLkNIfX0AQSBhbg==
----boundary-LibPST-iamunique-278464283_-_---
Received on Sun Nov 13 2011 - 13:16:50 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:10 UTC