CN101493775A - Dynamic loading system and loading method thereof for embedded system - Google Patents

Dynamic loading system and loading method thereof for embedded system Download PDF

Info

Publication number
CN101493775A
CN101493775A CNA2009100793337A CN200910079333A CN101493775A CN 101493775 A CN101493775 A CN 101493775A CN A2009100793337 A CNA2009100793337 A CN A2009100793337A CN 200910079333 A CN200910079333 A CN 200910079333A CN 101493775 A CN101493775 A CN 101493775A
Authority
CN
China
Prior art keywords
information
module
function
dynamic loading
call
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
CNA2009100793337A
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.)
BEIJING BEIWEI COMMUNICATION SCIENCE AND TECHNOLOGY Co Ltd
Original Assignee
BEIJING BEIWEI COMMUNICATION SCIENCE AND TECHNOLOGY Co Ltd
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 BEIJING BEIWEI COMMUNICATION SCIENCE AND TECHNOLOGY Co Ltd filed Critical BEIJING BEIWEI COMMUNICATION SCIENCE AND TECHNOLOGY Co Ltd
Priority to CNA2009100793337A priority Critical patent/CN101493775A/en
Publication of CN101493775A publication Critical patent/CN101493775A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a dynamic loading system of an embedded system and a loading method thereof. The dynamic loading system comprises a system platform and an application module of the system platform, and further comprises a dynamic loading device, wherein, the dynamic loading device comprises an information module, a group of functions or interfaces in the embedded system or the application call of the system, an information module loader for downloading information in the information module, an information management device for receiving the information transmitted by the information module loader and offering a function call port and a loading abridged table for recording the data set of the loaded information. As the invention is oriented to application for dynamic loading, the flow development cycle is guaranteed, thus improving the development efficiency and reducing the development cost and meeting the rapid development of the current markets.

Description

The dynamic loading system of embedded system and loading method thereof
Technical field
The present invention relates to a kind of dynamic loading method and loading system thereof, refer in particular to a kind of in embedded system, use be easy to dynamic loading method and the loading system thereof developing and expand.
Background technology
High speed development along with infotech, embedded system is with its small size, highly reliable, and can satisfy the advantages such as needs that realize the portable virtual instrument under field operations and the rugged surroundings, in the application of all trades and professions also more and more widely, based on development of embedded application very big development had been arranged especially in recent years, along with evolution of embedded technology and maturation, wherein the ARM system becomes built-in field application one of embedded system more widely, and this ARM system is along with the further increase of application requirements, and its software development is also more extensive thereupon and complicated.In existing embedded system, the embedded development process is that application is become an integral body with the operating system compiling link, directly it is mounted on the relevant hardware then and moves, and this version is exactly the version that lifelong operation is adopted.And so, after using the version exploitation to finish,, just need recompilate system if in debug process, find this application existing problems itself, the process of repeated downloads operation, be equivalent to carry out again, increased operation risk and maintenance in the future virtually, and when application being safeguarded and upgrade, also need to compile again again, the development process cycle prolongs greatly like this, promptly strengthens cost of developing, also can't satisfy the needs of the quick marketization.
In sum, although having to use, embedded system goes up advantages such as reliably convenient, but all be to adopt direct loading technique basically when developing towards hardware, this has brought development process long with respect to the application that becomes increasingly complex, cost of development height and the needs that can't satisfy the market fast development.
Summary of the invention
The objective of the invention is to propose a kind of dynamic loading method and loading system thereof, this method and system is that application oriented dynamic load is carried out on the basis with the embedded system platform, has further adapted to the application that becomes increasingly complex.
The object of the present invention is achieved like this:
A kind of dynamic loading system of embedded system comprises the application module in system platform and the system platform, also comprises dynamic loading device, and wherein this device comprises:
Information module is made of one group of function in the embedded system or in the application call of system or interface;
The information module loader is downloaded the information in the described information module;
Information manager receives the information that described information module loader transmits, and the function call mouth is provided;
Load abridged table, the data acquisition of the information that record is loaded.
Preferably, the information in the information module downloaded of described information module loader is the information header of the data structure of the described information module of expression.
Preferably, described information module can be arranged in the secondary storage device of system platform, and this described secondary storage device can be hard disk or flash or memory storage device.
Preferably, described dynamic loading device also comprises the function call module, is used for described module management alternately, obtains required function and delivers to application module operation.
Preferably, described dynamic loading device also comprises the information release module, is used for the recalls information that discharges information manager when returning calling.
The present invention also proposes a kind of dynamic loading method of embedded system, comprising:
Obtain the information header content of module information;
Resolve the described information header content that is obtained;
The relevant information of resolving the back acquisition is loaded in the loading abridged table;
Giving described information module with the call entry of system function preserves.
Preferably, also comprise the function call step,
Send function call request, described call request comprises the module information and the function information of being asked;
Receive described call request, and by loading the function information that the abridged table acquisition need be called;
Call and carry out described function.
Preferably, comprise also that the release steps after function call, described release steps are meant when function call is returned, and discharge the recalls information of information manager.
Preferably, adopt dynamic two-stage method of calling to carry out function call.
Preferably, described dynamic two-stage method of calling is:
Obtain the entry address of each information module by the loading abridged table;
After entering information module, the function address table that is provided by information module carries out concrete function call.
Scheme of the present invention has following technique effect:
Because the present invention is the application-oriented dynamic load of having carried out, guarantee the flow process construction cycle, and then improved development efficiency, reduce cost of development, satisfy the fast development in present market.
Description of drawings
Fig. 1 is the dynamic loading system block diagram in embedded system in the embodiments of the invention;
Fig. 2 is the modular structure synoptic diagram in the present embodiment;
Fig. 3 is the dynamic load schematic flow sheet of present embodiment;
Fig. 4 calls synoptic diagram for the modularity function of present embodiment;
Fig. 5 is the two-stage location synoptic diagram of present embodiment;
Fig. 6 is the dynamic load process flow diagram in embedded system in the embodiments of the invention.
Embodiment
Dynamic loading method in embedded system of the present invention is application oriented loading, is that realize on the basis with the system platform.Present embodiment is based on that the Nucleus embedded system of ARM describes method of the present invention.
Describe with a concrete loading system in the present invention, in embedded system carry out program chains the time, program chains is divided static linkage, is loaded link and operation link.Wherein said static linkage is exactly that program and its required whole storehouse of operation are linked into an execute file; Described loading link is meant that program can not be linked to the storehouse that it is used in the executive routine when compiling link, but just resolves execute file when it is loaded by the information loader, the storehouse of using is loaded into allows its operation in the system successively; Described dynamic link is to load further developing of link, refers to carry out when loading procedure with the storehouse is deferred to program run.The advantage of described static linkage is can independent operating, speed is fast, but the code size that generates is bigger; The advantage that loads link is that the program code amount reduces, and the internal memory that program accounts for when still moving does not reduce; Dynamic link can not introduced extra code to program, has only when certain storehouse of the real use of application just can load this storehouse, has reduced unnecessary space hold, and its shortcoming is to bring some operation expenses, and application and development and maintenance are not too convenient.
Embodiments of the invention are to be that example describes with the dynamic link, as shown in Figure 1, system of the present invention specifically comprises information module, this information module can be made of one group of function in the embedded system or in the application call of system or interface, wherein this information module has a data structure cell that comprises this module information, and this structural unit is an information header in the present embodiment; The information module loader, this loader is downloaded described information module, extracts information header wherein, i.e. data structure cell, described information module loader passes to information manager with described information header; The module information that described information manager administrative institute loads provides system call module invokes inlet, the logic of management external call turnover; System of the present invention also comprises the loading abridged table simultaneously, the data acquisition of the information module that this loading abridged table record is loaded, call the function that designated module provides by the application module in the system by this loading abridged table, and provide it to described information management management.Described in the present invention information module can be arranged in the secondary storage device of system, and this described secondary storage device can be hard disk, memory devices such as flash.
As shown in Figure 2, it is the structural representation of information module of the present invention, when carrying out the information module loading, information module loader in the system is moved the specified memory space with the information of information module from secondary storage devices, and each information module information delivered to information manager, module management is registered to this module information and loads in the abridged table.Described information module among the present invention finally is need be registered to the loading abridged table to be used to be employed module invokes, therefore described information module comprises information specific to be used for registration and to call, this information is an ingredient of module, i.e. data structure cell, just information header.Described information header has two effects: the one, and for information manager provides identifying information, be used for information manager and handle from the application module of embedded system or calling of other modules; Two provide the function call in the embedded system are provided access, and this inlet has information manager to realize in loading procedure.The subject content of system module of the present invention is exactly the function set of the application that realizes of module, also the APIs that improves with regard to information module.
Briefly, information module is developed to be finished when uploading on server or the secondary storage devices, the information loader is given manager the content of module information head, information manager resolving information head and the relevant information of module is loaded into loads in the abridged table, for the module that is can the calling system function, described information manager is given described information module the call entry of system function, is kept in the information header by described information module, has so just finished the loading of an information module.
As shown in Figure 3, dynamic load process flow diagram for the present invention program, when the application program of the embedded system in the present embodiment need be called the function that the information module developed provides, at first send call request to module management, this request comprises the module information and the function information of being asked, when described module management is received call request, find the application corresponding module to obtain function information according to module information by loading abridged table, then function call is given to information module, described information module finds corresponding function complete call according to function information, discharge information module and call the storage space that is consumed when calling when returning information manager, wait for next time and call.
When application program or information module need calling system API, the system function call entry that provides by information manager, the function that system is provided calls, in the method for the invention no matter be for the modules A PI of third party exploitation call or calling of the API of system all is to carry out the module location by first information manager, also can be regarded as information module for information manager application module and system and manage, be decided to be concrete function complete call then.Relevant invoked procedure can be with reference to content shown in Figure 4, at first, the function of application module recalls information module 1, first visit information manager obtains loading the inlet of information module 1 on the abridged table; At last, enter information module 1, the function address that the function list by information module 1 provides is finished visit.
In the present embodiment, whole invoked procedure can be located at twice and be finished, and is referred to as dynamic two-stage and calls.As shown in Figure 5, realize by the module loading abridged table of information management management one-level information module location, the loading abridged table provides the entry address of each information module, so can be regarded as the address list of information module, after entering module, the function address table that secondary function location provides by information module carries out concrete function calls.
Be illustrated in figure 6 as the process flow diagram of the described loading method of method of the present invention, at first obtain the information header content of module information; Resolve described information header content then; At last the information header relevant information is loaded into and loads in the abridged table; Again the call entry of system function is given described information module and preserve, finished the loading of an information module.
Though be described with reference to the drawings according to a particular embodiment of the invention above, but the present invention is not limited to customized configuration shown in the figure and processing, those skilled in the art can be after understanding spirit of the present invention, make various changes, modification and interpolation, perhaps change the order between the step.
The present invention can realize with other concrete form, and do not break away from its spirit and essential characteristic.For example, the algorithm described in the specific embodiment can be modified, and system architecture does not break away from essence spirit of the present invention.Therefore, current embodiment is counted as exemplary but not determinate in all respects, scope of the present invention is by claims but not foregoing description definition, and, thereby the whole changes that fall in the scope of the implication of claim and equivalent all are included among the scope of the present invention.

Claims (10)

1, a kind of dynamic loading system of embedded system comprises the application module in system platform and the system platform, it is characterized in that, also comprises dynamic loading device, and wherein this device comprises:
Information module is made of one group of function in the embedded system or in the application call of system or interface;
The information module loader is downloaded the information in the described information module;
Information manager receives the information that described information module loader transmits, and the function call mouth is provided;
Load abridged table, the data acquisition of the information that record is loaded.
2, dynamic loading system according to claim 1 is characterized in that, the information in the information module that described information module loader is downloaded is the information header of the data structure of the described information module of expression.
3, dynamic loading system according to claim 1 is characterized in that, described information module can be arranged in the secondary storage device of system platform, and this described secondary storage device can be hard disk or flash or memory storage device.
4, dynamic loading system according to claim 1 is characterized in that, described dynamic loading device also comprises the function call module, is used for described module management alternately, obtains required function and delivers to application module operation.
5, dynamic loading system according to claim 1 is characterized in that, described dynamic loading device also comprises the information release module, is used for the recalls information that discharges information manager when returning calling.
6, a kind of dynamic loading method of embedded system comprises:
Obtain the information header content of module information;
Resolve the described information header content that is obtained;
The relevant information of resolving the back acquisition is loaded in the loading abridged table;
Giving described information module with the call entry of system function preserves.
7, dynamic loading method according to claim 6 is characterized in that, also comprises the function call step:
Send function call request, described call request comprises the module information and the function information of being asked;
Receive described call request, and by loading the function information that the abridged table acquisition need be called;
Call and carry out described function.
8, dynamic loading method according to claim 7 is characterized in that, also is included in the release steps after the function call, and described release steps is meant when function call is returned, and discharges the recalls information of information manager.
9, dynamic loading method according to claim 6 is characterized in that, adopts dynamic two-stage method of calling to carry out function call.
10, dynamic loading method according to claim 9 is characterized in that, described dynamic two-stage method of calling is:
Obtain the entry address of each information module by the loading abridged table;
After entering information module, the function address table that is provided by information module carries out concrete function call.
CNA2009100793337A 2009-03-06 2009-03-06 Dynamic loading system and loading method thereof for embedded system Pending CN101493775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009100793337A CN101493775A (en) 2009-03-06 2009-03-06 Dynamic loading system and loading method thereof for embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009100793337A CN101493775A (en) 2009-03-06 2009-03-06 Dynamic loading system and loading method thereof for embedded system

Publications (1)

Publication Number Publication Date
CN101493775A true CN101493775A (en) 2009-07-29

Family

ID=40924387

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009100793337A Pending CN101493775A (en) 2009-03-06 2009-03-06 Dynamic loading system and loading method thereof for embedded system

Country Status (1)

Country Link
CN (1) CN101493775A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147743A (en) * 2011-03-28 2011-08-10 博视联(苏州)信息科技有限公司 Method for accelerating startup of embedded system application program
CN102541579A (en) * 2010-12-17 2012-07-04 沈阳新邮通信设备有限公司 Method for dynamically loading application program of embedded system
CN102810065A (en) * 2011-05-31 2012-12-05 国际商业机器公司 Method and system for loading program modules
CN103297275A (en) * 2013-06-08 2013-09-11 烽火通信科技股份有限公司 Dynamic discovery and loading system and method for Web network management client module
CN103294510A (en) * 2013-05-24 2013-09-11 深圳市爱夫卡科技有限公司 Dynamic application loading method and device
CN103365691A (en) * 2013-07-12 2013-10-23 中国人民解放军总参谋部第六十三研究所 Distributed-storage-based SCA component loading device and loading method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541579A (en) * 2010-12-17 2012-07-04 沈阳新邮通信设备有限公司 Method for dynamically loading application program of embedded system
CN102147743A (en) * 2011-03-28 2011-08-10 博视联(苏州)信息科技有限公司 Method for accelerating startup of embedded system application program
CN102810065A (en) * 2011-05-31 2012-12-05 国际商业机器公司 Method and system for loading program modules
CN102810065B (en) * 2011-05-31 2016-04-27 国际商业机器公司 For the method and system of loader module
CN103294510A (en) * 2013-05-24 2013-09-11 深圳市爱夫卡科技有限公司 Dynamic application loading method and device
CN103297275A (en) * 2013-06-08 2013-09-11 烽火通信科技股份有限公司 Dynamic discovery and loading system and method for Web network management client module
CN103297275B (en) * 2013-06-08 2016-08-17 烽火通信科技股份有限公司 Web network management client module Dynamic Discovery and loading method
CN103365691A (en) * 2013-07-12 2013-10-23 中国人民解放军总参谋部第六十三研究所 Distributed-storage-based SCA component loading device and loading method
CN103365691B (en) * 2013-07-12 2016-07-06 中国人民解放军总参谋部第六十三研究所 SCA component charger and loading method based on distributed storage

Similar Documents

Publication Publication Date Title
US10764202B2 (en) Container-based mobile code offloading support system in cloud environment and offloading method thereof
CN101421711B (en) Virtual execution system for resource-constrained devices
CN100476721C (en) Methods and apparatus to provide a modular native method invocation system, and system thereof
US8719839B2 (en) Two way communication support for heterogenous processors of a computer platform
CN101493775A (en) Dynamic loading system and loading method thereof for embedded system
CN103365668B (en) A kind of dynamic link library loads and the method, apparatus of link
US20150026684A1 (en) Hidden automated data mirroring for native interfaces in distributed virtual machines
US20110153957A1 (en) Sharing virtual memory-based multi-version data between the heterogenous processors of a computer platform
US8661426B2 (en) Method frame aggregation for latest user-defined class loader identification
US9189271B2 (en) Operation transfer from an origin virtual machine to a destination virtual machine while continue the execution of the operation on the origin virtual machine
CN103645945A (en) Automatic probing and drive loading method of virtual network interface card
CN112817597B (en) Method for realizing software container based on EBPF running in user space
WO2014200511A1 (en) Unified extensible firmware interface (uefi) driver and protocol
CN101404027A (en) File management method, system and equipment
CN111008046B (en) Cross-platform dynamic loading and dynamic management system for software radar components
CN108519947A (en) The method and tool of read-write register under a kind of Linux
CN114115990A (en) Program migration method, system and storage medium for dynamic and static combined binary translation
CN108647061A (en) Call method, device and the computing device of system hidden method
CN114925084A (en) Distributed transaction processing method, system, device and readable storage medium
US20100299661A1 (en) Load-Time Code Optimization In a Computing Environment
CN102331931A (en) Dynamic library managing method and device
CN106919391A (en) Towards the embedded system of the customizable operating system component of smart mobile phone
CN104391876A (en) Static data storing and querying method and system
CN109388416A (en) A kind of plug-in unit realization method and system of application software
WO2015062494A1 (en) Method and device for sdk uploading and downloading of a file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090729