Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
动态库可以在linux中有全局、局部和静态变量吗?
如果是,那么这些变量中的每一个将存储在内存中的什么位置?
在我看来,全局变量和静态变量将与动态库的代码部分一起出现,而本地变量应该在调用动态库函数的可执行文件的堆栈中声明。
您的观点是正确的(除了含糊不清的术语)......不确定您在这里究竟想要什么。