compiler construction - What is Symbol Resolution? -
This is one of the things that talks about every conversation but nobody defines ... It does not seem to have any information on this topic, what is the symbol resolution? I have found that the best thing is:
Is your program compiled, what is there to do with it?
OK, now when you refer to the NM of Unix, I can specify the symbol resolution Can i
Executable files can be done in the context of those entities which are not defined in themselves. For example, variables or processes on shared libraries Those institutions are identified by external symbols. Executables can also have internal symbols that can be referred to by external files - as is also in case of libraries.
The symbolic resolution, in this context, once the program is loaded into memory, will tell the appropriate address to all external institutions, which refers to it, which means that every situation in the weighted program is to change, where A reference was made to the outer symbol.
These addresses will depend on whether the code with external symbols has been loaded into memory.
In Unix, the default compilation mode for programs is to use the System Shared Library before adding all the required components in the executable. For example, by passing the -static
flag if you want to compile it rather than temporarily compiled contexts, compile the program containing GCC
.
See "Shared Library" for more information.
Comments
Post a Comment