gpt4 book ai didi

linker - "Local Linker Symbols"和 "Local Program Variables"有什么区别?

转载 作者:行者123 更新时间:2023-12-04 02:23:16 26 4
gpt4 key购买 nike

我想知道“本地链接器符号”和“本地程序变量”之间的区别?

我正在读一本书,里面有这样的:

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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com