我想知道“本地链接器符号”和“本地程序变量”之间的区别?
我正在读一本书,里面有这样的:
alt text http://img682.imageshack.us/img682/9816/symbols.jpg
每个是什么意思?有什么例子吗?
最佳答案
/* This function has global scope within this file (module). It is represented
* by a "local linker symbol", since the linker will need to resolve its address
* if it is referenced by any other function.
*/
static void some_function()
{
/* These "local program variables" are of no interest to the linker
* since they are not visible outside the current function, so no other
* part of the program can possibly reference them.
*/
int a, b, c;
}
关于linker - "Local Linker Symbols"和 "Local Program Variables"有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2375441/