CN106484446A - The program code loading method of application program and apply the computer system of its method - Google Patents

The program code loading method of application program and apply the computer system of its method Download PDF

Info

Publication number
CN106484446A
CN106484446A CN201510540018.5A CN201510540018A CN106484446A CN 106484446 A CN106484446 A CN 106484446A CN 201510540018 A CN201510540018 A CN 201510540018A CN 106484446 A CN106484446 A CN 106484446A
Authority
CN
China
Prior art keywords
program code
program
application program
replay
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510540018.5A
Other languages
Chinese (zh)
Inventor
黄建兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MStar Semiconductor Inc Taiwan
Original Assignee
MStar Semiconductor Inc Taiwan
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MStar Semiconductor Inc Taiwan filed Critical MStar Semiconductor Inc Taiwan
Priority to CN201510540018.5A priority Critical patent/CN106484446A/en
Publication of CN106484446A publication Critical patent/CN106484446A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention proposes a kind of program code loading method of application program, it is adaptable to by the program code storage of an application program in a computer system of a flash memory.First, the program code of application program is downloaded in a record pattern, comprising by the first paragraph program code for executing application program, produces an initial address and a data length of a second segment program code of application program.Then, according to initial address and the data length of the second segment program code of application program, the second segment program code of application program is loaded into a dynamic random access memory from flash memory.Then, replay shelves, initial address of the replay shelves comprising second segment program code and data length is produced, and replay shelves is stored to flash memory.Then, the program code of application program is downloaded in a replay mode, comprising initial address and data length according to the second segment program code in replay shelves, the second segment program code of application program is loaded into dynamic random access memory from flash memory.

Description

The program code loading method of application program and apply the computer system of its method
Technical field
The invention relates to a kind of program code loading method of computer system, and in particular to one kind The program code loading method of the application program of computer system.
Background technology
With the development of science and technology, computer system is widely used, in the boot program (boot of computer system Procedure, in), processor would generally sequentially be loaded into and execute boot program (bootloader), the system core (kernel) it is loaded into, and after boot program and execution application-specific, application-specific is, for example, frame Frame application program (framework application).In general, the data volume of application program is generally larger, Therefore the program code of application program can be segmented loading and execute.During segmentation is loaded into and executes, After processor must have gone through one section of program code, can just know to be loaded in the program code of application program Which section, therefore, it is impossible to accelerate the unlatching speed of application program by program code to be executed is pre-loaded into Degree.
Content of the invention
The present invention proposes a kind of program code loading method of application program and applies the computer system of its method, Which can note down the loading order of program code when executing application program, root under replay mode in record mode The program code of application program is pre-loaded into according to the program code loading order that notes down before, to accelerate to apply journey The opening speed of sequence.
According to an aspect of the invention, it is proposed that a kind of computer system.Computer system includes a flash memory, a dynamic Random access memory and a processor.Flash memory stores the program code of an application program.Processor is recorded one Record pattern is downloaded into the program code of application program, comprising by the first paragraph program generation for executing application program Code, produces an original position and a data length of a second segment program code of application program, according to application The initial address of the second segment program code of program and data length, by the second segment program code of application program Dynamic random access memory is loaded into from flash memory, and replay shelves are produced, replay shelves include second segment program The initial address of code and data length, replay shelves are stored to flash memory.Processor is downloaded in a replay mode Enter the program code of application program, long according to the initial address of the second segment program code of replay shelves and data Degree, the second segment program code of application program is loaded into dynamic random access memory from flash memory.
According to another aspect of the invention, it is proposed that a kind of program code loading method of application program, it is adaptable to By the program code storage of an application program in a computer system of a flash memory.First, under a record pattern The program code of application program is loaded into, comprising by the first paragraph program code for executing application program, is produced One initial address of one second segment program code of application program and a data length.Then, according to application journey The initial address of the second segment program code of sequence and data length, by the second segment program code of application program certainly Flash memory is loaded into a dynamic random access memory.Then, replay shelves are produced, and replay shelves include second segment The initial address of program code and data length, and replay shelves are stored to flash memory.Then, in a replay mode The program code of application program is downloaded into, comprising the initial address according to the second segment program code in replay shelves And data length, the second segment program code of application program is loaded into dynamic random access memory from flash memory Device.
Description of the drawings
It is that the above objects, features and advantages of the present invention can be become apparent, below in conjunction with accompanying drawing to this Bright specific embodiment elaborates, wherein:
Fig. 1 illustrates the schematic diagram of an example of the computer system of the present invention.
The flow chart that Fig. 2 illustrates an example of the program code loading method of the application program of the present invention.
Fig. 3 illustrates the flow process of another example of the program code loading method of the application program of the present invention Figure.
Fig. 4 A-4C illustrates application programs code and is downloaded into dynamic random access memory in record pattern An example schematic diagram.
Fig. 5 A-5C illustrates application programs code and is downloaded into dynamic random access memory in replay mode An example schematic diagram.
In figure component label instructions are as follows:
100:Computer system
110:Flash memory
120:Dynamic random access memory
121:Designated address space
122:Cache address space
130:Processor
S220、S222、S224、S226、S230、S232、S310、S320、S330、S341、S342、 S343、S344、S345、S346:Process step
PCi:Initial orders code
PC1~PC4:Procedure code
B0~BM, b0~bm:Block
Specific embodiment
According to one example of the present invention, there is provided a kind of journey that can be pre-loaded into application program in boot program Sequence code is to accelerate the computer system of application program opening speed.Fig. 1 is refer to, which illustrates the electricity of the present invention The schematic diagram of one example of brain system.Computer system 100 includes flash memory 110, dynamic random access memory 120 and processor 130.Flash memory 110 stores the program code of boot program, the system core and application program. When the power supply of computer system 100 is unlocked (powered on), processor 130 can sequentially by boot program with The program code of the system core is loaded into dynamic random access memory 120 from flash memory 110, to execute start Program and the system core, then, the program code of application program is loaded into by processor 130 from flash memory 110 Dynamic random access memory 120, to execute application program, wherein application program can be framework application, Such as Android framework application.
Fig. 2 is refer to, which illustrates the stream of an example of the program code loading method of the application program of the present invention Cheng Tu.In this example, in certain boot program of computer system 100, processor 130 can be in a note Record pattern (Record mode) is downloaded into the program code of application program to execute (step S220), step S220 Further include step S222-226;In the upper once boot program of computer system 100, processor 130 can change It is to be downloaded into the program code of application program in a replay mode (Replay mode) to execute (step S230), Step S230 further includes step S232.
In record mode, after processor 130 has executed boot program and the system core, just from flash memory 110 One section of initial orders code PCi for being loaded into application program is executed to dynamic random access memory 120.By Before initial orders code PCi has been not carried out in processor 130, it is impossible to learn next section of program to be executed Code is why, therefore processor 130 be after initial orders code PCi has been executed, could be from flash memory 110 It is loaded into program code PC1 next to be executed to execute to dynamic random access memory 120;In the same manner, Processor 130 is after program code PC1 has been executed, and could be loaded into from flash memory 110 next to be executed One section of program code PC2 is executed to dynamic random access memory 120.For example, in processor 130 After having executed initial orders code PCi, rising for one section of program code PC1 next to be executed will be produced Beginning address AD 1 is (for example:0x20000000) and data length DL1 (for example:100MB) (step S222);Connect , processor 130 will be according to initial address AD1 of program code PC1 and data length DL1 from sudden strain of a muscle Depositing 110 loading program code PC1, (step S224) is executed to dynamic random access memory 120.Similar Ground, after processor 130 has executed program code PC1, will produce one section of program next to be executed Initial address AD2 of code PC2 is (for example:0x50000000) and data length DL2 (for example:200MB); Then, processor 130 will according to initial address AD2 of program code PC2 and data length DL2 from Flash memory 110 is loaded into program code PC2 and executes to dynamic random access memory 120.The rest may be inferred, place The multi-segment program code PC1-PCn of reason 130 executable application programs of device.Rising in producing program code PC1 After beginning address AD 1 and data length DL1, processor 130 is just by initial address AD1 of program code PC1 And data length DL1 is write in replay shelves (Replay file) (step S226).In the same manner, in generating routine generation After initial address AD2 of code PC2 and data length DL2, processor 130 is just by program code PC2's In initial address AD2 and data length DL2 write replay shelves.The rest may be inferred, executes in processor 130 After the program code PC1-PCn of complete application program, replay shelves planted agent contains program code PC1-PCn's Initial address AD1-ADn and data length DL1-DLn.In an example, the starting of replay shelves storage The quantity of address and data length is fixing, that is to say, that what replay shelves were stored is the multistage of application program Initial address PC1-PCn of N section program code (PC1-PCn) in program code and data length DL1-DLn, rather than store initial address and the data length of all of code segment of application program. As an example it is assumed that replay shelves can store 20 sections of program codes of application program, if code segment Quantity is 30, then replay shelves only store initial address and the data length of 20 sections of program codes, and do not store up Deposit initial address and the data length of remaining 10 sections of program codes.In an example, processor 130 is Replay shelves are stored in flash memory 110, data therein are stored in as flash memory can still retain after a loss of power, Processor 130 just can be loaded into application program according to the replay shelves being stored in flash memory 110 when start next time Program code.
Under replay mode, after processor 130 has executed boot program and the system core, just from flash memory 110 One section of initial orders code PCi for being loaded into application program is executed to dynamic random access memory 120.With Unlike logging mode, processor 130 can be according to the replay shelves being stored in flash memory 110, in advance from sudden strain of a muscle Deposit 110 the program code of application program is sequentially loaded into dynamic random access memory 120 (step S232), For executing after processor 130.For example, processor 130 can be according to replay shelves Program code PC1 Initial address AD1 and data length DL1, in advance program code PC1 is loaded into from flash memory 110 dynamic State random access memory 120;Long according to initial address AD2 of replay shelves Program code PC2 and data Program code PC2 is loaded into dynamic random access memory 120 from flash memory 110 by degree DL2 in advance;According to This analogizes, and processor 130 can be according to initial address AD1-ADn of replay shelves Program code PC1-PCn And data length DL1-DLn, in advance program code PC1-PCn is loaded into dynamic random from flash memory 110 Access memory 120.
In an example, processor 130 can be a single-core processor, and parallel in the way of time division multiplexing Process the program code for being loaded into and executing application program.In another example, processor 130 can be a multinuclear Heart processor, respectively with different core parallel processing loading and the task of configuration processor code.For example, When a core is carrying out initial orders code PCi, with another core of time according in replay shelves Initial address AD1 of program code PC1 and data length DL1, in advance by program code PC1 from flash memory 110 are loaded into dynamic random access memory 120.
Consequently, it is possible to when the program code to be executed of processor 130 has been pre-loaded into dynamic random access memory During device 120, processor 130 just can be directly according to the program for being pre-loaded into dynamic random access memory 120 Code is executing program code to be executed, and then accelerates the opening speed of application program.For example, when Processor 130 has executed initial orders code PCi and has learnt program code next to be executed for program generation Code PC2, if program code PC2 has been pre-loaded dynamic random access memory 120, processor 130 Just the program code PC2 being pre-loaded in dynamic random access memory 120 can be directly executed, and then is accelerated The opening speed of application program.
Fig. 3 is refer to, which illustrates another example of the program code loading method of the application program of the present invention Flow chart.In this example, after computer system 100 executes boot program, processor 130 can be according to sudden strain of a muscle Deposit 110 and whether there are replay shelves, determine under record pattern (step S320) or (step under replay mode S330) program code of application program is loaded into;Step S341 to S346 is further included under replay mode.
After computer system 100 executes boot program, processor 130 checks in flash memory 110 whether there is weight Broadcast shelves (step S310).For example, replay shelves can be stored in the ad-hoc location in flash memory 110, when After computer system 100 executes boot program, processor 130 can check ad-hoc location in flash memory 110 whether With replay shelves.If with replay shelves in flash memory 110, step S330 is entered;If not having in flash memory 110 There are replay shelves, then enter step S320.
In step S320, processor 130 can be loaded into the program code of application program in record mode holding OK.Similar to described in step S220, here is seldom repeated step S320.
In step S330, processor 130 can be downloaded into the program code of application program in replay mode to hold OK.Step S330 further includes step S341 to S346.
After processor 130 has executed program code (such as PC1), will learn next to be executed One section of program code (such as PC2).Then, processor 130 will confirm one section of journey next to be executed Whether sequence code PC2 has been written into dynamic random access memory 120 (step S341).
If processor 130 confirms that program code PC2 has been pre-loaded dynamic random access memory 120, Processor 130 just can directly execute the program code being pre-loaded in dynamic random access memory 120 PC2 (step S346).
If processor 130 confirms that program code PC2 is not also pre-loaded dynamic random access memory 120, Next program code PC2 to be executed just is loaded into dynamic randon access from flash memory 110 by processor 130 Memory 120, and update a miss rate (Miss rate) (step S342).For example, miss rate is in order to record Under replay mode, next processor 130 cannot be found in dynamic random access memory 120 will for record The number of times of the program code of execution.In an example, processor 130 is to note down miss rate by a parameter, When processor 130 cannot find program code next to be executed in dynamic random access memory 120 When, processor 130 updates miss rate, and the parameter numerical value of miss rate is added 1.
After processor 130 updates miss rate, processor 130 confirms that miss rate is no and is more than a preset value (step Rapid S343).If miss rate is more than preset value, step S344 is entered;If miss rate is not more than preset value, Step S345 is then entered.Wherein preset value can be by designer's sets itself.
If processor 130 confirms that miss rate is more than preset value, the replay shelves being stored in flash memory 110 are deleted (step S344).For example, to represent, more than preset value, the information error recorded by replay shelves excessive for miss rate. Therefore, replay shelves deleted by processor 130, and change computer system 100 with general flow loading application program Program code, it is, after processor 130 has executed one section of program code, being just loaded into from flash memory 110 Next one section of program code to be executed is executed to dynamic random access memory 120, rather than at place After reason device 130 has executed one section of program code, confirm one section of program code next to be executed whether by It is loaded into dynamic random access memory 120.
If processor 130 confirms that miss rate is not more than preset value, the weight being stored in flash memory 110 is not deleted Broadcast shelves (step S345).For example, miss rate no more than preset value represents the information mistake recorded by replay shelves Difference is in tolerable scope.Therefore, replay shelves do not deleted by processor 130, and continue according to replay shelves certainly Flash memory 110 is loaded into the program code of application program to dynamic random access memory 120.
Refer to Fig. 4 A to Fig. 4 C, its illustrate application programs code record pattern be downloaded into dynamic with The schematic diagram of one example of machine access memory 120.In an example, dynamic random access memory 120 Including a cache address space (cache address space) 122 and application program one specifies address empty Between (allocated address space) 121.Cache address space 122 is divided into multiple block b0-bm. Designated address space 121 is divided into multiple block B0-BM.Designated address space 121 is computer system 100 Specify the address space for storing the application programs code of the execution of device to be processed 130.Cache Address space 122 is then specified for computer system 100 and is pre-loaded into according to replay shelves for storing processor 130 Application programs code address space.It is pre-loaded according to replay shelves when processor 130 will be executed Application programs code when, processor 130 can the program code that will execute empty from cached address Between 122 be copied to the designated address space 121 of the application program to execute.
Refer to Fig. 4 A to Fig. 4 C.In this example, boot program and system has been executed in processor 130 After core, the initial orders code PCi of application program can be loaded on dynamic randon access from flash memory 110 and deposit The designated address space 121 of reservoir 120.For example, as shown in Figure 4 A, initial orders code PCi It is loaded on block B0.Then, after processor 130 has executed initial orders code PCi, next Application programs code PC1 to be executed, can be loaded on dynamic random access memory from flash memory 110 120 designated address space 121.It should be noted that every time when processor 130 has executed initial orders After code PCi, meet down application programs code PC1 to be executed and differ and be set to the same of application program Section program code, that is to say, that after processor 130 has executed initial orders code PCi, connecing down will The application programs code of execution may be the 1st section of program code of application program, it is also possible to be application 2nd section of program code of program.Therefore, in this example, the program code PC1 of indication refers to execute Code segment to be executed after beginning program code PCi.For example, as shown in Figure 4 B, it is assumed that After processor 130 has executed initial orders code PCi, application programs code PC1 to be executed is met down For the M section program code of application program, then program code PC1 is loaded on block BM.The rest may be inferred, The program code PC1-PCn of application program under record pattern, be all by flash memory 110 be loaded on dynamic with The designated address space 121 of machine access memory 120.For example (all do not illustrate), as shown in Figure 4 C, After assuming that processor 130 has executed program code PC1, application programs code to be executed is connect down PC2 is loaded on block B2 for the 2nd section of program code of application program, then program code PC2;Assume After processor 130 has executed program code PCn-1, application programs code PCn to be executed is met down For the 1st section of program code of application program, program code PCn is loaded on block B1.That is, at this In example, initial orders code PCi can be loaded on block B0, and program code PC1-PCn is foundation The code segment order of application program is loaded on the corresponding block of designated address space 121.Citing comes Say, if program code PC1 is the 2nd section of program code of application program, program code PC1 is loaded on Block B2;If program code PC2 is the 1st section of program code of application program, program code PC2 quilt Block B1 is loaded into, is not limited with the situation depicted in Fig. 4 A-4C.
Refer to Fig. 5 A to Fig. 5 C, its illustrate application programs code replay mode be downloaded into dynamic with The schematic diagram of one example of machine access memory 120.In this example, start has been executed in processor 130 After program and the system core, the initial orders code PCi of application program can be loaded on dynamic from flash memory 110 The designated address space 121 of random access memory 120 is being executed by processor 130, and corresponds to replay The program code PC1-PCn of shelves is then sequentially loaded on dynamic random access memory 120 from flash memory 110 Cache address space 122, as shown in 5A figure.For example, initial orders code PCi is loaded on The block B0 of designated address space 121, program code PC1 are loaded on cache address space 122 Block b0, program code PC2 be loaded on the block b1 of cache address space 122, program generation Code PC3 is loaded on the block b2 of cache address space 122.In fig. 5, program code PC1-PC3 has been loaded on the cache address space 122 of dynamic random access memory 120, program Code PC4-PCn is not yet loaded on the cache address space 122 of dynamic random access memory 120.
Then, processor 130 has executed initial orders code PCi and has produced program generation next to be executed After code, processor 130 will confirm whether program code next to be executed has been written into dynamic random and has deposited The cache address space 122 of access to memory 120.If confirming, program code next to be executed is carried Enter the cache address space 122 of dynamic random access memory 120, processor 130 will be from dynamic The cache address space 122 of random access memory 120 replicates program code next to be executed extremely In dynamic random access memory 120, the designated address space 121 of application program is executing;If confirming to connect down Carry out the cache address space that program code to be executed not yet is loaded into dynamic random access memory 120 122, processor 130 will be loaded into program code next to be executed from flash memory 110 and deposit to dynamic random In access to memory 120, the designated address space 121 of application program is executing.
For example, whether dynamic randon access is being written into when confirmation program code next to be executed During the cache address space 122 of memory 120, the program code PC1-PC3 of application program is carried Enter the cache address space 122 of dynamic random access memory 120, and the program code of application program PC4-PCn is not yet written into the situation of the cache address space 122 of dynamic random access memory 120 Under, if program code next to be executed is PC2, processor 130 will be from dynamic random access memory The 122 reproducer code PC2 of cache address space of device 120 is to dynamic random access memory 120 The designated address space 121 of middle application program executing, as shown in 5B figure.In figure 5b, with dotted line arrow It is empty that head representation program code PC2 is copied to specified address by the block b1 of cache address space 122 Between 121 block B1.If next program code to be executed is PC4, processor 130 will be from flash memory 110 designated address space for being loaded into program code PC4 to application program in dynamic random access memory 120 121 executing, as shown in 5C figure.In figure 5 c, with dotted arrow representation program code PC4 by flash memory The 110 block BM for being loaded on designated address space 121.
Consequently, it is possible to according to the abovementioned embodiments of the present invention, provide in both modes and be respectively started application journey Sequence, in record mode, starting point when being read by the section program code of replay shelves records application program Location and data length.Under replay mode, when processor is carrying out being read to dynamic random access memory During the section program code of the application program of device, the section program of the application program that can be recorded by replay shelves The initial address of code and data length, are not also read application program to dynamic random access memory The section program code of the application program that section program code or rear extended meeting are used, persistently reads from flash memory in advance Take and be loaded into dynamic random access memory.In this way, without when processor, flash memory knows that the next one is used After the section program code of the application program for arriving, just it is read out, the unlatching of application program therefore, can be accelerated Speed.
Although the present invention is disclosed as above with preferred embodiment, so which is not limited to the present invention, Ren Heben Skilled person, without departing from the spirit and scope of the present invention, when a little modification and perfect can be made, Therefore protection scope of the present invention is when by being defined that claims are defined.

Claims (14)

1. a kind of computer system for being pre-loaded into application programs code, including:
One flash memory, stores the program code of an application program;
One dynamic random access memory;And
One processor, in order to execute following method:
The program code of the application program is downloaded in a record pattern, comprising:
By the first paragraph program code for executing the application program, the one second of the application program is produced One initial address (initial address) of section program code and a data length (data length);
According to the initial address and the data length of the second segment program code of the application program, will The second segment program code of the application program is loaded into a dynamic random access memory from a flash memory; And
Replay shelves (replay file) are produced, the starting of the replay shelves comprising the second segment program code Address and the data length, and the replay shelves are stored to the flash memory;And
The program code of the application program is downloaded in a replay mode, comprising:
According to the initial address and the data length of the second segment program code in the replay shelves, will The second segment program code of the application program is loaded into the dynamic random access memory from the flash memory.
2. computer system as claimed in claim 1, it is characterised in that
The dynamic random access memory also include a requested space (cache address space) and One designated address space (allocated address space) of the application program, the wherein cached address are empty Between be different from the designated address space;
Under the record pattern, the second segment program code is loaded into the specified address of the application program Space;
Under the replay mode, the second segment program code is according to the replay shelves, is loaded on the high speed and delays Deposit address space.
3. computer system as claimed in claim 2, it is characterised in that being downloaded into this in the replay mode should Also included with the program code of program:
Confirm whether the one section of program code that next will execute the application program has been written into the dynamic random Access memory;And
Confirm that this section of program code that next will execute the application program has been written into the dynamic randon access After memory, this section of program code of the application program next will be executed, empty from the cached address Between be copied to the designated address space of the application program.
4. computer system as claimed in claim 2, it is characterised in that being downloaded into this in the replay mode should Also included with the program code of program:
Confirm whether the one section of program code that next will execute the application program has been written into the dynamic random Access memory;And
Confirm that this section of program code that next will execute the application program is not yet written into the dynamic random and deposits After access to memory, next to be executed this section of program code of the application program be loaded into this from the flash memory should The designated address space with program.
5. computer system as claimed in claim 1, it is characterised in that being downloaded into this in the replay mode should Also included with the program code of program:
Confirm whether the one section of program code that next will execute the application program has been written into the dynamic random Access memory;
Confirm that this section of program code that next will execute the application program is not yet written into the dynamic random and deposits After access to memory, a miss rate is updated;
Confirm that the miss rate is no and be more than a preset value;And
Confirm that the miss rate, more than after the preset value, deletes the replay shelves being stored in the flash memory.
6. computer system as claimed in claim 5, it is characterised in that the method performed by the processor is also Comprising:
After a boot program (boot procedure) is executed, whether replay shelves are had according to the flash memory, is determined The program code of the application program is downloaded under the record pattern or in the replay mode.
7. computer system as claimed in claim 6, it is characterised in that the application program is a frame application Program (framework application).
8. a kind of method for being pre-loaded into application programs code, it is adaptable to by the program generation of an application program Code is stored in a computer system of a flash memory, and the method includes:
The program code of the application program is downloaded in a record pattern, comprising:
By the first paragraph program code for executing the application program, the one second of the application program is produced One initial address (initial address) of section program code and a data length (data length);
According to the initial address and the data length of the second segment program code of the application program, will The second segment program code of the application program is loaded into a dynamic random access memory from a flash memory; And
Replay shelves (replay file) are produced, the starting of the replay shelves comprising the second segment program code Address and the data length, and the replay shelves are stored to the flash memory;And
The program code of the application program is downloaded in a replay mode, comprising:
According to the initial address and the data length of the second segment program code in the replay shelves, will The second segment program code of the application program is loaded into the dynamic random access memory from the flash memory.
9. method as claimed in claim 8, it is characterised in that
Under the record pattern, the second segment program code is loaded into the application program in the dynamic random One designated address space (allocated address space) of access memory;And
Under the replay mode, the second segment program code is loaded into the dynamic random access memory One cache address space (cache address space), it is characterised in that the cache address space The designated address space different from the application program.
10. method as claimed in claim 9, it is characterised in that be downloaded into the application in the replay mode The number of passes code of program also includes:
Confirm whether the one section of program code that next will execute the application program has been written into the dynamic random Access memory;
Confirm that this section of program code that next will execute the application program has been written into the dynamic randon access After memory, this section of program code of the application program next will be executed, empty from the cached address Between be copied to the designated address space of the application program.
11. methods as claimed in claim 9, it is characterised in that be downloaded into the application in the replay mode The program code of program also includes:
Confirm whether the one section of program code that next will execute the application program has been written into the dynamic random Access memory;
Confirm that this section of program code that next will execute the application program is not yet written into the dynamic random and deposits This section of program code of the application program after access to memory, next will be executed, and this is loaded into from the flash memory The designated address space of application program.
12. methods as claimed in claim 8, it is characterised in that be downloaded into the application in the replay mode The program code of program also includes:
Confirm whether the one section of program code that next will execute the application program has been written into the dynamic random Access memory;
Confirm that this section of program code that next will execute the application program is not yet written into the dynamic random and deposits After access to memory, a miss rate is updated;
Confirm that the miss rate is no and be more than a preset value;
Confirm that the miss rate, more than after the preset value, deletes the replay shelves being stored in the flash memory.
13. methods as claimed in claim 12, also include:
After a boot program (boot procedure) is executed, whether replay shelves are had according to the flash memory, is determined The program code of the application program is downloaded under the record pattern or in the replay mode.
14. methods as claimed in claim 13, it is characterised in that the application program is a frame application journey Sequence (framework application).
CN201510540018.5A 2015-08-28 2015-08-28 The program code loading method of application program and apply the computer system of its method Pending CN106484446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510540018.5A CN106484446A (en) 2015-08-28 2015-08-28 The program code loading method of application program and apply the computer system of its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510540018.5A CN106484446A (en) 2015-08-28 2015-08-28 The program code loading method of application program and apply the computer system of its method

Publications (1)

Publication Number Publication Date
CN106484446A true CN106484446A (en) 2017-03-08

Family

ID=58234842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510540018.5A Pending CN106484446A (en) 2015-08-28 2015-08-28 The program code loading method of application program and apply the computer system of its method

Country Status (1)

Country Link
CN (1) CN106484446A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327660A (en) * 2021-12-30 2022-04-12 浙江大立科技股份有限公司 External memory initialization method based on FPGA

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1302016A (en) * 1999-12-02 2001-07-04 三星电子株式会社 Fast startor and method
CN101236489A (en) * 2008-02-26 2008-08-06 北京深思洛克数据保护中心 Dummy hardware system and its instruction execution method and dummy machine
US20090077326A1 (en) * 2007-09-14 2009-03-19 Ricoh Company, Limited Multiprocessor system
CN101751268A (en) * 2008-12-12 2010-06-23 群联电子股份有限公司 Motherboard, memory, controller thereof and booting method
CN102025712A (en) * 2009-09-15 2011-04-20 上海华为技术有限公司 Data updating method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1302016A (en) * 1999-12-02 2001-07-04 三星电子株式会社 Fast startor and method
US20090077326A1 (en) * 2007-09-14 2009-03-19 Ricoh Company, Limited Multiprocessor system
CN101236489A (en) * 2008-02-26 2008-08-06 北京深思洛克数据保护中心 Dummy hardware system and its instruction execution method and dummy machine
CN101751268A (en) * 2008-12-12 2010-06-23 群联电子股份有限公司 Motherboard, memory, controller thereof and booting method
CN102025712A (en) * 2009-09-15 2011-04-20 上海华为技术有限公司 Data updating method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XUITE: "u-boot逐行分析", 《HTTPS://BLOG.XUITE.NET/TZENG015/TWBLOG/113272073-U-BOOT%E9%80%90%E8%A1%8C%E5%88%86%E6%9E%90+%28IMPORTANT%29》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327660A (en) * 2021-12-30 2022-04-12 浙江大立科技股份有限公司 External memory initialization method based on FPGA
CN114327660B (en) * 2021-12-30 2024-01-30 浙江大立科技股份有限公司 Initialization method of external memory based on FPGA

Similar Documents

Publication Publication Date Title
EP3678346B1 (en) Blockchain smart contract verification method and apparatus, and storage medium
US8443375B2 (en) Lockless queues
CN105867934B (en) File remote upgrading method based on dichotomy and MD5 verification
US8332590B1 (en) Multi-stage command processing pipeline and method for shared cache access
CN106062707A (en) Enabling maximum concurrency in a hybrid transactional memory system
JP6877435B2 (en) Database operation method and equipment
CN107665219B (en) Log management method and device
CN107665255A (en) Method, apparatus, equipment and the storage medium of key value database data change
CN107590207A (en) Method of data synchronization and device, electronic equipment
CN106550014A (en) Node upgrade method and device in server cluster
CN109471843A (en) A kind of metadata cache method, system and relevant apparatus
JP2004348744A5 (en)
CN110795042A (en) Method for writing and flushing metadata of full flash memory storage system and related components
CN104077078B (en) Read memory block, update the method and device of memory block
CN104137100B (en) Data library device, program and data processing method
CN112884587B (en) Block chain transaction execution method, block chain node and control device
CN106484446A (en) The program code loading method of application program and apply the computer system of its method
CN106776775B (en) Concurrent master-slave synchronization method and device
JP2009181688A (en) Optical disk, recording apparatus, reading apparatus, recording method, and reading method
CN106250188B (en) A kind of generation method and system of system firmware image file
CN110414669A (en) A kind of method of accelerans network structure selection
CN112884588B (en) Block chain transaction execution method, block chain node and control device
US8904348B2 (en) Method and system for handling errors during script execution
CN113986775A (en) Method, system and device for generating page table entries in RISC-V CPU verification
CN113590273A (en) Transaction processing method, system, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170308