Patent ID: 8881123

Claim:
A method for generating an executable binary of a program in which private symbols are externally accessible, the method comprising: generating an intermediate representation (IR) of the program by compiling the program, wherein the program contains at least one module that includes one or more private symbols, and wherein each private symbol of the one or more private symbols is accessible only within the at least one module; discovering the one or more private symbols in the program by scanning the IR; generating a respective wrapper function for each private symbol of the one or more private symbols, such that calling the respective wrapper function provides access to said each private symbol from another module; combining the program with each respective wrapper function of the one or more private symbols to create a combined program; and generating the executable binary by recompiling the combined program, so that the another module in the executable binary has access to each private symbol of the one or more private symbols of the at least one module by calling the respective wrapper function for said each private symbol.