IP Library Granted Patent US 9,715,398
Granted Patent B2
US 9,715,398 · App. 14/840,443 · Granted Jul 25, 2017

Program code loading method of application and computing system using the same

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,715,398
App. No.
14/840,443
Granted
Jul 25, 2017
Kind
B2
Abstract

A program code loading method of an application is applied to a computing system that stores a program code of an application in a flash memory. The program code is loaded in a recording mode, including generating an initial address and a data length of a second program code of the application by executing a first program code of the application. According to the initial address and data length, the second program code is loaded from the flash memory to a DRAM. A replay file, including the initial address and the data length of the second program code, is generated and stored to the flash memory. The program code is loaded in a replay mode, including loading the second program code from the flash memory to the DRAM according to the initial address and data length of the second program code in the replay file.

Claims (55)

1. A computing system that pre-loads a program code of an application, comprising:

a flash memory, storing the program code of the application;

a dynamic random access memory (DRAM); and

a processor, performing a following method:

in a recording mode, loading the program code of the application, comprising:

generating an initial address and a data length of a second section of the program code by executing a first section of the program code of the application;

loading the second section of the program code of the application from the flash memory to the DRAM according to the initial address and the data length of the second section of the program code of the application; and

generating a replay file, the replay file comprising the initial address and the data length of the second section of the program code, and storing the replay file to the flash memory; and

in a replay mode, loading the program code of the application, comprising:

loading the second section of the program code of the application from the flash memory to the DRAM according to the initial address and the data length of the second section of the program code in the replay file.

2. The computing system according to claim 1 , wherein:

the DRAM further comprises a cache address space and an allocated address space of the application, and the cache address space is different from the allocated address space;

in the recording mode, the second section of the program code is loaded into the allocated address space of the application; and

in the replay mode, the second section of the program code is loaded into the cache address space according to the replay file.

3. The computing system according to claim 2 , wherein the method performed by the processor further comprises:

in the replay mode, the step of loading the program code of the application further comprises:

determining whether a section of the program code of the application to be executed next has been loaded into the DRAM; and

after it is determined that the section of the program code to be executed next has been loaded into the DRAM, duplicating the section of the program code of the application to be executed next from the cache address space to the allocated address space of the application.

4. The computing system according to claim 2 , wherein the method performed by the processor further comprises:

in the replay mode, the step of loading the program code of the application further comprises:

determining whether a section of the program code of the application to be executed next has been loaded into the DRAM; and

after it is determined that the section of the program code to be executed next has not been loaded into the DRAM, loading the section of the program code of the application to be executed next from the flash memory to the allocated address space of the application.

5. The computing system according to claim 1 , wherein the method performed by the processor further comprises:

in the replay mode, the step of loading the program code of the application further comprises:

determining whether a section of the program code of the application to be executed next has been loaded into the DRAM;

after it is determined that the section of the program code of the application to be executed next has not been loaded into the DRAM, updating a miss rate;

determining whether the miss rate is greater than a predetermined value; and

after it is determined that the miss rate is greater than the predetermined value, deleting the replay file from the flash memory.

6. The computing system according to claim 5 , wherein the method performed by the processor further comprises:

after executing a boot procedure, determining to load the program code of the application either in the recording mode or in the replay mode according to whether the replay file exists in the flash memory.

7. The computing system according to claim 6 , wherein the application is a framework application.

8. A method that pre-loads a program code of an application, applied to a computing system that stores the program code of the application to a flash memory, the method comprising:

in a recording mode, loading the program code of the application, comprising:

generating an initial address and a data length of a second section of the program code by executing a first section of the program code of the application;

loading the second section of the program code of the application from the flash memory to the DRAM according to the initial address and the data length of the second section of the program code of the application; and

generating a replay file, the replay file comprising the initial address and the data length of the second section of the program code, and storing the replay file to the flash memory; and

in a replay mode, loading the program code of the application, comprising:

loading the second section of the program code of the application from the flash memory to the DRAM according to the initial address and the data length of the second section of the program code in the replay file.

9. The method according to claim 8 , wherein:

in the recording mode, the second section of the program code is loaded into an allocated address space of the application in the DRAM; and

in the replay mode, the second section of the program code is loaded into a cache address space in the DRAM; the cache address space is different from the allocated address space.

10. The method according to claim 9 , wherein the step of loading the program code of the application in the replay mode further comprises:

determining whether a section of the program code of the application to be executed next has been loaded into the DRAM; and

after it is determined that the section of the program code to be executed next has been loaded into the DRAM, duplicating the section of the program code of the application to be executed next from the cache address space to the allocated address space of the application.

11. The method according to claim 9 , wherein the step of loading the program code of the application in the replay mode further comprises:

determining whether a section of the program code of the application to be executed next has been loaded into the DRAM; and

after it is determined that the section of the program code to be executed next has not been loaded into the DRAM, loading the section of the program code of the application to be executed next from the flash memory to the allocated address space of the application.

12. The method according to claim 8 , wherein the step of loading the program code of the application in the replay mode further comprises:

determining whether a section of the program code of the application to be executed next has been loaded into the DRAM;

after it is determined that the section of the program code of the application to be executed next has not been loaded into the DRAM, updating a miss rate;

determining whether the miss rate is greater than a predetermined value; and

when it is determined that the miss rate is greater than the predetermined value, deleting the replay file from the flash memory.

13. The method according to claim 12 , further comprising:

after executing a boot procedure, determining to load the program code of the application either in the recording mode or in the replay mode according to whether the replay file exists in the flash memory.

14. The method according to claim 13 , wherein the application is a framework application.

Assignments (2)
MERGER Recorded Jun 12, 2020
From: MSTAR SEMICONDUCTOR, INC.
To: MEDIATEK INC.
Reel/Frame 052931/0468 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2015
From: HUANG, CHIEN-HSING
To: MSTAR SEMICONDUCTOR, INC.
Reel/Frame 036457/0707 →