Electronic Device and Method for Updating Related Programs
First Claim
1. A method for updating a program within an electronic device, wherein the program comprises a plurality of sub-modules, the method comprising:
- selecting a first sub-module;
assigning a plurality of stub-functions to the first sub-module, wherein the plurality of stub-functions are corresponding to addresses of a plurality of functions in the first sub-module separately; and
when calling a first function, getting an address of the first function by selecting a first stub-function among the plurality of stub-functions in advance, and executing the first function according to the address of the first function.
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic device includes a memory and a program. The program includes a plurality of sub-modules, wherein each sub-module includes a plurality of stub functions and a plurality of functions, each stub-function corresponding to an address of a function respectively. The method for updating the program includes setting a plurality of stub-function in a first sub-module, and calling a first stub function in advance for getting an address of a first function when calling the first function. In the present invention, the time load of linking and down loading programs when updating programs is substantially reduced.
41 Citations
17 Claims
-
1. A method for updating a program within an electronic device, wherein the program comprises a plurality of sub-modules, the method comprising:
-
selecting a first sub-module;
assigning a plurality of stub-functions to the first sub-module, wherein the plurality of stub-functions are corresponding to addresses of a plurality of functions in the first sub-module separately; and
when calling a first function, getting an address of the first function by selecting a first stub-function among the plurality of stub-functions in advance, and executing the first function according to the address of the first function. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. An electronic device comprising:
-
a memory divided into a plurality of memory blocks; and
a program having a plurality of sub-modules stored in the plurality of memory blocks correspondingly, in which each sub-module has a plurality of functions and a plurality of stub-functions corresponding to addresses of the plurality of functions separately;
wherein while calling the first function of the plurality of functions, an address of a first function is retrieved by selecting a first stub-function among the plurality of stub-functions, and the first function is executed according to the address. - View Dependent Claims (11, 12, 13, 14, 15, 17)
-
-
16. The electronic device of claim 111 wherein a size of each memory block of the plurality of memory blocks is larger than a size of the corresponding sub-module.
Specification