What is the difference between "Local Linker Symbols" and "Local Program Variables"?

I want to know the difference between “Local linker symbols” and “Local program variables”?

I am reading a book that has this:

alt text http://img682.imageshack.us/img682/9816/symbols.jpg

What does each mean? Any examples?

+3
source share
2 answers
/* 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;
}
+3
source

Local Linker characters are defined and refer exclusively to the module.

, , , .

- , , , .

0

Source: https://habr.com/ru/post/1735339/


All Articles