Patent ID: 6351848
Filing Date: 2002-02-26
Classification: G06F

Abstract:
A method of compiling and linking a source file, the method comprising:generating, using a compiler, global variable information pertaining to at least one global variable referenced in a source file; generating, using the compiler, a first object file from the source file, where the object file includes global variable information; linking the first object file with at least a second object file to generate an executable file; generating, during the linking process, a composite symbol table having a symbol entry for each global variable in at least one of the linked object files; examining, during the linking process, the composite symbol table and determining if at least one global variable conflict occurs; generating, during or after the linking process, a composite relocation table having at least one relation entry for resolving at least one global variable conflict determined during examination of the composite symbol table; performing, during or after the linking process, a relocation operation according to at least one relocation entry in the composite relocation table; and completing compilation of the first and second object files after the linking process and the relocation operation are completed.