CN1928819A - Program startup method and embedded system using same - Google Patents

Program startup method and embedded system using same Download PDF

Info

Publication number
CN1928819A
CN1928819A CN 200510098284 CN200510098284A CN1928819A CN 1928819 A CN1928819 A CN 1928819A CN 200510098284 CN200510098284 CN 200510098284 CN 200510098284 A CN200510098284 A CN 200510098284A CN 1928819 A CN1928819 A CN 1928819A
Authority
CN
China
Prior art keywords
mentioned
application program
data file
module
file
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
CN 200510098284
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.)
Lite On Technology Corp
Original Assignee
Lite On Technology Corp
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 Lite On Technology Corp filed Critical Lite On Technology Corp
Priority to CN 200510098284 priority Critical patent/CN1928819A/en
Publication of CN1928819A publication Critical patent/CN1928819A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embedded system with the provided program startup method comprises: a storage device to store installed executable files and data and at least one correlative mark, a main memory, and an OS with a module to search required data file for application program according to the mark and load data into the main memory. This invention can reduce loading for the CPU.

Description

The embedded system of program start method and use said method
Technical field
The invention relates to embedded technology, and be particularly to application program launching method.
Background technology
Because therefore the finite capacity of computing ability, storage medium and the primary memory of embedded system needs the properly system resource of configuration embedded system.Generally speaking, most embedded system is when executive utility, application program image file in the storage medium can be decompressed to the primary memory to carry out, but because the cost height of primary memory, therefore the many capacity uses that can save primary memory by some compression methods are compressed and the steady-state solution compress technique and can roughly be divided into dynamic resolution.
The steady-state solution compress technique is by revising boot program, and the loading primary memory contracts operating system, the whole decompress(ion) of application program and related function storehouse when computer system power-on.This technology can make the execution efficient height of application program, and saves the capacity requirement of storage medium.Yet this method can consume a large amount of primary memory spaces.
For instance, the size after the file system of an embedded system decompresses is 32MB (megabyte).If with 10%~25% ratio of compression, between the required about 3.2MB~8MB of storage medium capacity of this embedded system.Because program also needs other extra primary memory space in carrying out, this embedded system probably needs the primary memory of 64MB, even more.
The dynamic resolution compress technique then by the revised file system, only decompresses, loads one section required program code when application program is carried out.The method can load respectively when needs are used function library after application program is carried out again.Therefore, this resource that will consume processor in a large number decompresses, and makes application program carry out slowly (reducing by 30% execution usefulness approximately).
With the file system example explanation of above-mentioned 32MB, use the embedded system of dynamic resolution compress technique, need the storage medium capacity of 16MB and the main memory capacity of 2MB~32MB approximately.Yet the execution speed of application program can be very slow.
U.S. Patent number 6298422 discloses a kind of in the multiplex system environments, reduces the method for central processing unit (central processing unit is called for short CPU) load and primary memory use amount simultaneously.Yet, the general normally single worker of embedded system and do not use virtual memory (virtual memory), therefore inapplicable this method.
Summary of the invention
In view of this, purpose of the present invention is providing the method that reduces central processing unit load, storage medium capacity and primary memory use amount of taking into account.
The invention provides a kind of embedded system, comprise storage device, primary memory, reach operating system.Said storage unit stores and has been installed in the executable file of the application program on the above-mentioned embedded system, a plurality of data file and at least one dependence label.The above-mentioned application program of above-mentioned dependence identification record and above-mentioned application program need the corresponding relation of the corresponding data file that uses under different executing states.The aforesaid operations system comprises a module.When above-mentioned module is requested to carry out above-mentioned application program, search the required above-mentioned corresponding data file of above-mentioned application program in above-mentioned a plurality of data file according to above-mentioned dependence label, and, then carry out above-mentioned executable file with above-mentioned executable file and the above-mentioned primary memory of above-mentioned corresponding data file load.
Embedded system of the present invention is stored in above-mentioned executable file in the said storage unit and above-mentioned a plurality of data file for compressing, and was decompressed by above-mentioned module before the above-mentioned executable file of execution.
Embedded system of the present invention, above-mentioned module are a program execution module, obtain above-mentioned executable file and above-mentioned corresponding data file in order to the file system via the aforesaid operations system.
Embedded system of the present invention, whether above-mentioned primary memory comprises the status indicator of above-mentioned application program, when above-mentioned module is requested to carry out above-mentioned application program, differentiates above-mentioned application program according to above-mentioned status indicator and carrying out.
Embedded system of the present invention, above-mentioned module is relatively adjusted above-mentioned state tag after carrying out above-mentioned executable file, carrying out to indicate above-mentioned application program.
Embedded system of the present invention, when above-mentioned module is requested to stop above-mentioned application program, remove the above-mentioned executable file and the above-mentioned corresponding data file of above-mentioned application program from above-mentioned primary memory, and relatively adjust above-mentioned state tag, stopped carrying out to indicate above-mentioned application program.
Embedded system of the present invention, before the above-mentioned executable file of removing above-mentioned application program from above-mentioned primary memory and above-mentioned corresponding data file, whether above-mentioned module is differentiated above-mentioned application program according to above-mentioned status indicator and is being carried out.
Embedded system of the present invention when above-mentioned module is requested to stop above-mentioned application program, is removed the above-mentioned corresponding data file of above-mentioned application program according to above-mentioned dependence sign.
The present invention also provides a kind of program start method, is executed in an embedded system.Above-mentioned embedded system comprises a primary memory and a module.Store at least one dependence label in above-mentioned embedded system, wherein above-mentioned dependence identification record has been installed in application program and above-mentioned application program on the above-mentioned embedded system needs the corresponding data file that uses under different executing states corresponding relation.When above-mentioned module is requested to carry out above-mentioned application program, search the required above-mentioned corresponding data file of above-mentioned application program in above-mentioned a plurality of data file according to above-mentioned dependence label.And with above-mentioned executable file and the above-mentioned primary memory of above-mentioned corresponding data file load.Carry out above-mentioned executable file.
Program start method of the present invention, above-mentioned executable file and above-mentioned a plurality of data file are compressed, and said procedure startup method more comprised before carrying out above-mentioned executable file: utilize above-mentioned module decompress above-mentioned executable file and above-mentioned a plurality of data file.
Program start method of the present invention, above-mentioned module are a program execution module of an operating system of above-mentioned embedded system, obtain above-mentioned executable file and above-mentioned corresponding data file in order to the file system via the aforesaid operations system.
Program start method of the present invention, above-mentioned primary memory comprises the status indicator of above-mentioned application program, whether said procedure startup method more comprises: when above-mentioned module is requested to carry out above-mentioned application program, differentiates above-mentioned application program according to above-mentioned status indicator and carrying out.
Program start method of the present invention more comprises: above-mentioned module is relatively adjusted above-mentioned state tag after carrying out above-mentioned executable file, is carrying out to indicate above-mentioned application program.
Program start method of the present invention more comprises: when above-mentioned module is requested to stop above-mentioned application program, remove the above-mentioned executable file and the above-mentioned corresponding data file of above-mentioned application program from above-mentioned primary memory; And relatively adjust above-mentioned state tag, stopped carrying out to indicate above-mentioned application program.
Program start method of the present invention more comprises: before the above-mentioned executable file of removing above-mentioned application program from above-mentioned primary memory and above-mentioned corresponding data file, whether above-mentioned module is differentiated above-mentioned application program according to above-mentioned status indicator and is being carried out.
Program start method of the present invention more comprises: when above-mentioned module is requested to stop above-mentioned application program, remove the above-mentioned corresponding data file of above-mentioned application program according to above-mentioned dependence sign.
The embedded system of program start method of the present invention and use said method, it is not the revised file system, therefore can want loaded data when adjusting application program launching, and can reduce central processing unit load, storage medium capacity and primary memory use amount with the difference of program.
Description of drawings
Fig. 1 shows the structure calcspar of an embedded system embodiment;
The process flow diagram of Fig. 2 display routine startup method embodiment;
Fig. 3 shows the synoptic diagram of dependence sign and status indicator embodiment;
Fig. 4 display routine stops the process flow diagram of embodiment;
The structure calcspar of Fig. 5 display routine startup method storage medium.
Embodiment
Below disclose the embedded system embodiment of program start method and use said method.Need be appreciated that, below the configuration of each entity and step just in order to illustrating, and can further adjust according to product demand.
With reference to Fig. 1, embedded system 100 comprises primary memory 2, operating system 3 and storage device 4.Operating system 3 can be realized by computer program, and be carried out by the processor (not shown) of embedded system 100.Storage device 4 can comprise hard disk (hard drive), tape (tape), disk (disk), flash memory cards (flash memory card) or other storage medium.
Storage device 4 stores and has been installed in a plurality of application programs on the above-mentioned embedded system 100, a plurality of dependence sign and a plurality of status indicator.Each application program comprises executable file and a plurality of data file, and has corresponding dependence sign and status indicator.The data that are stored in storage device 4 are all through overcompression.The a plurality of application programs of above-mentioned dependence identification record and these a plurality of application programs need the corresponding relation of the corresponding data file that uses under different executing states.Status indicator is in order to indicate the executing state of its corresponding application program.
For instance, above-mentioned a plurality of application program comprises application program 7; Application program comprises executable file 8 and data file 9.Storage device 4 comprises the data file 10 that operating system 3 provides in addition.Application program 7 corresponding dependence sign 11 and status indicators 12.
Operating system 3 is coupled to storage device 4 and primary memory 2, and comprises program execution module 5 and file system 6.
With reference to Fig. 2 with the explanation application program launching method.
Embedded system 100 starts are finished, are loaded and begin operating system 3, shown in step S2.Embedded system 100 produces an application program launching and interrupts, in order to beginning executive utility 7, shown in step S4.Program execution module 5 receives application program launching and interrupts.Shown in step S6.When program execution module 5 receives that above-mentioned application program launching interrupts and when being requested to carry out above-mentioned application program 7, automatically performs following steps:
When program execution module 5 is requested to carry out above-mentioned application program 7, whether differentiate above-mentioned application program 7 carrying out, shown in step S8 according to above-mentioned state tag 12.In this way, program execution module 5 continues to wait for that receiving application program launching interrupts, shown in step S6.As denying, program execution module 5 is differentiated dependence sign 11, shown in step S10, obtains executable file 8, and obtain the required corresponding data file of above-mentioned application program in above-mentioned a plurality of data file 7 according to above-mentioned dependence label 11 searches, shown in step S12.For instance, application program 7 required corresponding data files are data file 9 and 10. Data file 9 and 10 can comprise map file, enactment document, function or other application program desired data.
Program execution module 5 is obtained above-mentioned executable file 8 and above-mentioned corresponding data file 9 and 10 via file system 6.Then, program execution module 5 decompression executable files 8, data file 9 and 10 are shown in step S14.Need be appreciated that the operation of decompression also can be carried out by a file system.
Program execution module 5 loads primary memory 2 with above-mentioned executable file 8 and corresponding data file 9 and 10, shown in step S16, then carries out executable file 8, shown in step S18.Program execution module 5 is relatively adjusted state tag 12 after carrying out executable file 8, to indicate application program 7 carrying out, shown in step S20.Dependence sign 11 and status indicator 12 also can load primary memory 2 in step S16.
Fig. 3 shows the example of dependence sign 11 and status indicator 12.The content of dependence label 11 is included in<ADT〉and</ADT〉between.The identification code of application program 7 is at<APID〉and</APID〉between.The information of the data file that application program 7 is required is at<DATA〉and</DATA〉between, the information designation data file 9 in the block 111 wherein, and the information designation data file 10 in the block 112.The content of state tag 12 is included in<AST〉and</AST〉between.The identification code of application program 7 is at<APID〉and</APID〉between.The required executing state corresponding informance of application program 7 is at<STATUS〉and</STATUS〉between.For instance, " 1 " expression application program 7 is being carried out; And " 0 " expression application program 7 has stopped.In step S20, program execution module 5 writes " 1 "<STATUS〉and</STATUS〉between.
In like manner, program execution module 5 can be carried out other application program as above-mentioned steps.
With reference to the terminator of Fig. 4 with the explanation application program.
Embedded system 100 produces an application program and stops interrupting, in order to stop application program 7, shown in step S42.Program execution module 5 receives application program and stops interrupting, shown in step S44.When program execution module 5 receives that above-mentioned application program stops interrupting and when being requested to stop above-mentioned application program 7, automatically performs following steps:
When whether program execution module 5 differentiates above-mentioned application program 7 carrying out, shown in step S46 according to above-mentioned state tag 12.As not, program execution module 5 continues to wait for that receiving application programs stops interrupting, shown in step S44.In this way, program execution module 5 stops the execution of application program 7, shown in step S48, differentiate dependence label 11, shown in step S50, and remove above-mentioned application program 7 required corresponding data file and executable file from primary memory 2, shown in step S52 according to above-mentioned dependence sign 11.For instance, application program 7 required corresponding data files are data file 9 and 10, then clear data file 9 and 10 and executable file 8 of program execution module 5.
Program execution module 5 is relatively adjusted state tag 12 after stopping application program 7, stopped with indication application program 7, shown in step S54.Status indicator 12 also can be retained in primary memory 2 or store back storage device 4.
With reference to Fig. 5, embedded system 100A comprises processor 1, primary memory 2, reaches storage device 4.Operating system 3 is stored in storage device 4, when loading embedded system 100A, processor 1 according to operating system 3 to carry out above-mentioned steps.
Therefore, above-mentioned embedded system comprises the dependence sign of mounted application program, differentiates the foundation that whether loads primary memory in order to do when the application program launching.Simultaneously, the dependence sign also is used in the foundation that clears data when stopping application program.Therefore said method is not the revised file system, can want loaded data when adjusting application program launching with the difference of program.
The above only is preferred embodiment of the present invention; so it is not in order to limit scope of the present invention; any personnel that are familiar with this technology; without departing from the spirit and scope of the present invention; can do further improvement and variation on this basis, so the scope that claims were defined that protection scope of the present invention is worked as with the application is as the criterion.
Being simply described as follows of symbol in the accompanying drawing:
100,100A: embedded system
1: processor
2: primary memory
3: operating system
4: storage device
5: the program execution module
6: file system
7: application program
8: executable file
9: data file
10: data file
11: the dependence label
12: state tag
111,112: the label block

Claims (16)

1, a kind of embedded system is characterized in that described embedded system comprises:
One storage device, store and be installed in the executable file of the application program on the above-mentioned embedded system, a plurality of data file and at least one dependence label, wherein above-mentioned application program need use at least one corresponding data file under different executing states, and the corresponding relation between above-mentioned application program and above-mentioned corresponding data file under the different executing states of above-mentioned dependence identification record;
One primary memory; And
One operating system, be coupled to said storage unit and above-mentioned primary memory, and comprise a module, wherein, when above-mentioned module is requested to carry out above-mentioned application program,, in above-mentioned a plurality of data files, search the required above-mentioned corresponding data file of above-mentioned application program according to above-mentioned dependence label, and, then carry out above-mentioned executable file with above-mentioned executable file and the above-mentioned primary memory of above-mentioned corresponding data file load.
2, embedded system according to claim 1 is characterized in that: be stored in above-mentioned executable file in the said storage unit and above-mentioned a plurality of data file for compressing, and decompressed by above-mentioned module before the above-mentioned executable file of execution.
3, embedded system according to claim 2 is characterized in that: above-mentioned module is a program execution module, obtains above-mentioned executable file and above-mentioned corresponding data file in order to the file system via the aforesaid operations system.
4, embedded system according to claim 2, it is characterized in that: above-mentioned primary memory comprises the status indicator of above-mentioned application program, when above-mentioned module is requested to carry out above-mentioned application program, differentiates above-mentioned application program according to above-mentioned status indicator and whether carrying out.
5, embedded system according to claim 4 is characterized in that: above-mentioned module is relatively adjusted above-mentioned state tag after carrying out above-mentioned executable file, is carrying out to indicate above-mentioned application program.
6, embedded system according to claim 5, it is characterized in that: when above-mentioned module is requested to stop above-mentioned application program, remove the above-mentioned executable file and the above-mentioned corresponding data file of above-mentioned application program from above-mentioned primary memory, and relatively adjust above-mentioned state tag, stopped carrying out to indicate above-mentioned application program.
7, embedded system according to claim 6, it is characterized in that: before the above-mentioned executable file of removing above-mentioned application program from above-mentioned primary memory and above-mentioned corresponding data file, whether above-mentioned module is differentiated above-mentioned application program according to above-mentioned status indicator and is being carried out.
8, embedded system according to claim 6 is characterized in that: when above-mentioned module is requested to stop above-mentioned application program, remove the above-mentioned corresponding data file of above-mentioned application program according to above-mentioned dependence sign.
9, a kind of program start method is executed in an embedded system, and above-mentioned embedded system comprises a primary memory, a storage device and a module, it is characterized in that said procedure startup method comprises:
In said storage unit, store an application program and at least one dependence label, wherein above-mentioned application program includes an executable file and a plurality of data file, above-mentioned application program need to be used at least one corresponding data file under different executing states, and the corresponding relation between above-mentioned application program and above-mentioned corresponding data file under the different executing states of above-mentioned dependence identification record;
When above-mentioned module is requested to carry out above-mentioned application program, in above-mentioned a plurality of data files, search the required above-mentioned corresponding data file of above-mentioned application program according to above-mentioned dependence label;
And with above-mentioned executable file and the above-mentioned primary memory of above-mentioned corresponding data file load; And
Carry out above-mentioned executable file.
10, program start method according to claim 9, it is characterized in that: above-mentioned executable file and above-mentioned a plurality of data file are compressed, and said procedure startup method more comprised before carrying out above-mentioned executable file: utilize above-mentioned module decompress above-mentioned executable file and above-mentioned a plurality of data file.
11, program start method according to claim 10, it is characterized in that: above-mentioned module is a program execution module of an operating system of above-mentioned embedded system, obtains above-mentioned executable file and above-mentioned corresponding data file in order to the file system via the aforesaid operations system.
12, program start method according to claim 11, it is characterized in that: above-mentioned primary memory comprises the status indicator of above-mentioned application program, whether said procedure startup method more comprises: when above-mentioned module is requested to carry out above-mentioned application program, differentiates above-mentioned application program according to above-mentioned status indicator and carrying out.
13, program start method according to claim 12 is characterized in that more comprising: above-mentioned module is relatively adjusted above-mentioned state tag after carrying out above-mentioned executable file, is carrying out to indicate above-mentioned application program.
14, program start method according to claim 13 is characterized in that more comprising:
When above-mentioned module is requested to stop above-mentioned application program, remove the above-mentioned executable file and the above-mentioned corresponding data file of above-mentioned application program from above-mentioned primary memory; And
Relatively adjust above-mentioned state tag, stopped carrying out to indicate above-mentioned application program.
15, program start method according to claim 14 is characterized in that more comprising:
Before the above-mentioned executable file of removing above-mentioned application program from above-mentioned primary memory and above-mentioned corresponding data file, whether above-mentioned module is differentiated above-mentioned application program according to above-mentioned status indicator and is being carried out.
16, program start method according to claim 14 is characterized in that more comprising:
When above-mentioned module is requested to stop above-mentioned application program, remove the above-mentioned corresponding data file of above-mentioned application program according to above-mentioned dependence sign.
CN 200510098284 2005-09-05 2005-09-05 Program startup method and embedded system using same Pending CN1928819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510098284 CN1928819A (en) 2005-09-05 2005-09-05 Program startup method and embedded system using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510098284 CN1928819A (en) 2005-09-05 2005-09-05 Program startup method and embedded system using same

Publications (1)

Publication Number Publication Date
CN1928819A true CN1928819A (en) 2007-03-14

Family

ID=37858793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510098284 Pending CN1928819A (en) 2005-09-05 2005-09-05 Program startup method and embedded system using same

Country Status (1)

Country Link
CN (1) CN1928819A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043621A (en) * 2010-12-01 2011-05-04 北京迅捷英翔网络科技有限公司 Webpage development method based on Javascript tag library
CN102117245B (en) * 2010-01-06 2014-07-02 浙江德景电子科技有限公司 Embedded device and method for loading and starting operation of cutting system executable file thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117245B (en) * 2010-01-06 2014-07-02 浙江德景电子科技有限公司 Embedded device and method for loading and starting operation of cutting system executable file thereof
CN102043621A (en) * 2010-12-01 2011-05-04 北京迅捷英翔网络科技有限公司 Webpage development method based on Javascript tag library

Similar Documents

Publication Publication Date Title
US9075629B2 (en) Multi-phase resume from hibernate
US9448857B2 (en) Memory access method for parallel computing
CN1799032A (en) Method and apparatus for morphing memory compressed machines
CN1947094A (en) System and method to conditionally shrink an executable module
CN1959638A (en) Method and apparatus for memory initializing in a computer system
CN1609829A (en) Plug-and-play method for USB equipment under linux operation system
US7900197B2 (en) Program initiation methods and embedded systems utilizing the same
US9342344B2 (en) Content-based swap candidate selection
CN111240765B (en) LINUX compression application program loading method
CN1928819A (en) Program startup method and embedded system using same
CN1200354C (en) Automatic compressing/decompressing file system and its compressing algorithm
CN1269034C (en) Compression of executable document in embedded type system and its loading method
US8131918B2 (en) Method and terminal for demand paging at least one of code and data requiring real-time response
US9471584B2 (en) Demand paging method for mobile terminal, controller and mobile terminal
CN1975935A (en) External storing performance testing method and apparatus
CN1661561A (en) Architecture and method of shared application program in operation systme possessing characteristic of saving electricity
CN1896967A (en) Method for starting operation system and testing by USB carry-on disk
CN1752885A (en) Computer system and its layout method
CN101042655A (en) A firmware executing apparatus and executing method, a firmware configuration device and configuration method
CN1645329A (en) Frame of shared disk cut zone in operating system and method thereof
CN1821960A (en) Embedded system for automatic loading root file system automatic loading system and method
CN1797335A (en) Method for expanding function of basic input / output system
CN1237447C (en) Method for clearing internal memory under disc operating system environment
CN1914807A (en) Encoding/decoding device
CN1904863A (en) Method for data processing by establishing arithmetic path in computer peripheral device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication