Abstract:
A method for multiple executable binaries with static links is provided. The method includes a fixed binary generated from non-modified source program file has symbols of functions and variables with fixed addresses; a first modifiable binary generated from modified source program files has symbols of functions and variables with changed addresses; and a first reference table contains the symbols of functions and variables of the first modifiable binary which are referred by the fixed binary; wherein the first modifiable binary refers to the symbols of the fixed binary directly, and the fixed binary refers to the symbols of functions and the variables of the first modifiable binary through the first reference table at runtime.
Abstract:
A computing system performs a policy-based machine code compression method. The computing system hosts a virtual machine that generates machine code from bytecode. The computing system determines whether to compress the machine code file according to a set of conditions specified by a policy. If the set of conditions is satisfied, the machine code file is compressed. For system booting and package installation, the machine code file can be deleted to save storage. When launching an application, the compressed machine code file is decompressed for execution. When the application process terminates, the decompressed machine code file can be deleted. The machine code file compression can be performed on a mobile device to save storage, or on a host when building a system image to reduce download time. Parallel compression and decompression algorithms can be used for the machine code file compression and decompression in a multi-core computing system.