摘要 |
A linker is usually used, in post processing of compiling high-level languag es such as C into machine executable language, to bind separately compiled object files and resolve the addresses (142) of global variables (140) declared in the separa te files. The invention proposes linking during compile time by using a special purpos e hash table called global variables hash table (130) shared among the separate files. This results in a collection of processed object files that are coherent in terms of their addresses (142) for global variables (140) that could be further assembled correctly into machine executable code. This method is useful for compiling separate high level language source files to generate executable machine code employing a technique of address resolution across separate modules.
|