开发者

Dynamic libraries with local and static variables

Can Dynamic libraries have global, local and static variables in linux?

If yes, then where will each of these variabl开发者_StackOverflowes get stored in the memory?

In my view, Globals and Static will be along with the code section of the Dynamic libraries while the locals should get declared in the stack of the executable making calls to the functions of the dynamic libraries.


Your view is correct (ambiguous terminology aside)... not sure what exactly you're after here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜