CN1591334A - Embedded system program simplifying processing method and system - Google Patents

Embedded system program simplifying processing method and system Download PDF

Info

Publication number
CN1591334A
CN1591334A CN 03156642 CN03156642A CN1591334A CN 1591334 A CN1591334 A CN 1591334A CN 03156642 CN03156642 CN 03156642 CN 03156642 A CN03156642 A CN 03156642A CN 1591334 A CN1591334 A CN 1591334A
Authority
CN
China
Prior art keywords
embedded system
virtual machine
object type
program
archives
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 03156642
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.)
Inventec Corp
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to CN 03156642 priority Critical patent/CN1591334A/en
Publication of CN1591334A publication Critical patent/CN1591334A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present invention relates to an embedded system program simplification processing method and its system. It is used for virtual machine carried in embedded system and all the application programs executed by means of said virtual machine. Said method and system at least include: compilation module, object class extraction module, compression module and digital code collecting module. Said invention also provides the action of every module and concrete steps for implementing said simplification processing method. Said method can reduce total digital code amount of virtual machine and application process, can save internal storage space of said embedded system and increase the effect of the embedded system.

Description

Embedded system program is simplified disposal route and system
Technical field
The invention relates to a kind of computer information technology, particularly simplify disposal route and system about a kind of embedded system program, be used for virtual machine (Virtual Machine) to the required lift-launch of embedded system (embedded system), Java Virtual Machine (Java Virtual Machine for example, JVM) or Microsoft virtual machine (Microsoft Virtual Machine, MVM), and simplify processing (scale down) by all application programs that this virtual machine is carried out, reduce the total digital code amount of this virtual machine and application program whereby, save the memory headroom of embedded system, therefore increased the system effectiveness of this embedded system.
Background technology
The information platform of embedded system (embedded system) institute construction, for example mobile phone, personal digital assistant device or the like, normal at present Java Virtual Machine (the Java Virtual Machine that adopts, JVM) or the Microsoft virtual machine (Microsoft Virtual Machine MVM) makes with a kind of application program and can cross-platformly be applied on the various information platforms that are established in dissimilar central processing units and operating system; As long as just the programmer writes out an application program, can allow this application program on the different kinds of information platform, carry out by virtual machine, and needn't be respectively at the different kinds of information platform to writing a plurality of programs with a kind of operating function.
Fig. 1 promptly shows the virtual machine required in the embedded system 10 in the information platform 11 and the framework of application program.As shown in the figure, suppose that this embedded system 10 is used to carry out one group of application program 31,32,33 (annotating: be that example explains with 3 application programs 31,32,33 only, also can be the application program of arbitrary number) herein.In this embedded system 10, except operating system 40, a virtual machine 20 being installed also, for example is Java Virtual Machine; And this virtual machine 20 comprises a library of object (object library) 21, one compiler (complier) 22 and an execution time back-up system (runtime environment) 23 at least; And (is example with JVM) for example includes a 21a of language classification group (lang), a serial and the 21b of date category group (util) in the library of object 21, the 21c of classification group (io), a 21d of pattern classes group (awt), a 21e of high-order pattern classes group (awt.image), a 21f of network classification group (net), (applet) 21g of HTML classification group and the 21h of other classification group are gone in an output.
Because above-mentioned library of object 21, compiler 22 and execution time back-up system 23 is assembly in the existing virtual machine (for example JVM), it is not described in further detail below therefore.
In actual applications, a kind of program loading method at present commonly used be with application program 31,32,33 in the source code mode, all be loaded in the embedded system 10 together with operating system 40 with all assemblies (being whole library of object 21, compiler 22 and execution time back-up systems 23) in the virtual machine 20.With this practice,, at first need utilize compiler 22 that these application programs 31,32,33 are compiled into bytecode (byte code) when embedded system 10 during at actual executive utility 31,32,33; Then obtain the required object type (class) of application program 31,32,33 from library of object 21; Relend the bytecode that comes executive utility by execution time back-up system 23 at last, thereby required operating function is provided.
Yet because embedded system 10 generally all is used to the operating function that provides specific, so its application program 31,32,33 only need use a fraction of object type in the library of object 21 usually.Therefore all archives among all 21a of classification group in the library of object 21,21b, 21c, 21d, 21e, 21f, 21g, the 21h all are loaded into the practice in the embedded system 10, obviously can unnecessarily take the memory headroom of embedded system 10, the system effectiveness of embedded system 10 is reduced.
A kind of solution of the problems referred to above is to increase the memory headroom in the embedded system 10.But the shortcoming of this practice is to need to increase extra hardware cost, and the object type that needn't use will take the storage area, the waste of formation resource and the reduction of usefulness.Another solution that can save the internal memory of embedded system directly is compiled into application program 31,32,33 the executable machine code of central processing unit of embedded system 10 for not using virtual machine 20.But the shortcoming of this practice is application program 31,32,33 and will loses cross-platform ability, makes the programmer need to write a plurality of programs at the different kinds of information platform respectively, does not meet whole cost benefit.
Summary of the invention
For overcoming the shortcoming of above-mentioned prior art, fundamental purpose of the present invention is to provide a kind of embedded system program to simplify disposal route and system, it can reduce the total digital code amount of virtual machine required in the embedded system and application program, saves the memory headroom of embedded system.
Another object of the present invention is to provide a kind of embedded system program to simplify disposal route and system, it can increase the system effectiveness of embedded system.
The step that embedded system program of the present invention is simplified disposal route is: (1) is compiled into bytecode with the source code of each application program; The archives of all required object type when (2) from this library of object, taking out each application program execution, and the archives of these object type are gathered, are organized into one must use object type archives group; (3) must compress with object type archives group this, obtain one whereby and must use the object type archive file; (4) from this virtual machine, obtain wherein execution time back-up system; (4) with the digital of the number of the application program of above-mentioned bytecode, execution time back-up system with must gather, be organized into the digital general collection of an embedded system program with the number of object type archive file, in order to the digital general collection of this embedded system program is loaded on embedded system.
Embedded system program of the present invention is simplified disposal system and comprised at least: a collector is compiled into bytecode with the source code of each application program; One object classification is chosen module, the archives of all required object type in the time of can from library of object, taking out each application program execution, and the archives of these object type are gathered, are organized into one must use object type archives group; One compression module to compressing with object type archives group, obtains one whereby and must use the object type archive file; One digital collection module, it is with the digital of the number of the application program of above-mentioned bytecode, execution time back-up system and must gather, be organized into the digital general collection of an embedded system program with the number of object type archive file, in order to the digital general collection of this embedded system program is loaded on embedded system.
Above-mentioned embedded system program is simplified disposal route and system and be can be applicable to virtual machine (Virtual Machine) to required lift-launch in the embedded system (embedded system), Java Virtual Machine (Java Virtual Machine for example, JVM) or Microsoft virtual machine (Microsoft VirtualMachine, MVM), and by all application programs that this virtual machine is carried out simplify processing (scale down).Wherein, this virtual machine comprises a library of object, a compiler and an execution time back-up system at least.
The characteristics that embedded system program of the present invention is simplified disposal route and system are all application programs all are compiled into bytecode (byte code) in advance; And only select the archives of these application programs all required object type when carrying out in the library of object from the prototype virtual machine, and the archives of these object type are compressed into one must use the object type archive file; And and then compiler removed and be not loaded on embedded system.These characteristics can reduce virtual machine and application program is loaded on the total digital code amount of embedded system and saves the memory headroom of embedded system, and increase the system effectiveness of embedded system whereby.
Description of drawings
Fig. 1 (prior art) is a configuration diagram, shows the framework commonly used of virtual machine required in the embedded system in the information platform and application program;
Fig. 2 is the system architecture synoptic diagram, shows that virtual machine of the present invention simplifies the Object Oriented OO component model framework of disposal system; And
Fig. 3 is a synoptic diagram, shows that the object type among the present invention is chosen module is chosen required necessary object type from library of object mode of operation.
Embodiment
Embodiment
Fig. 2 shows that promptly embedded system program of the present invention simplifies the basic framework of the Object Oriented OO component model (object-orientedcomponent model) of disposal system (as the included part of frame of broken lines of label 100 indications).As shown in the figure, embedded system program of the present invention is simplified disposal system 100 and be can be used for the required specific virtual machine 20 of embedded system 10 and one group of application program 31 carrying out by this virtual machine 20,32,33 (annotate: herein only with 3 application programs 31,32,33 explain for example, but can be the application program of arbitrary number on actual the enforcement) simplify processing (scale down), reduce virtual machine 20 and application program 31 whereby, 32,33 total digital code amount, save the memory headroom of embedded system 10, and increase the system effectiveness of this embedded system 10.
Virtual machine 20, for example be Java Virtual Machine (Java Virtual Machine, JVM) or Microsoft virtual machine (Microsoft Virtual Machine, MVM), comprise a library of object (object library) 21, one compiler (complier) 22 and an execution time back-up system (runtimeenvironment) 23 at least.Because this library of object 21, compiler 22 and execution time back-up system 23 all are the assemblies in the existing virtual machine (for example being JVM), therefore following will it not being described in further detail.
The Object Oriented OO component model that embedded system program of the present invention is simplified disposal system 100 comprises at least: (a) collector 110; (b) an object classification is chosen module 120; (c) compression module 130; And (d) digital collection module 140.
Compiler 22 in the function of collector 110 and the prototype virtual machine 20 is identical, and it can be compiled into the source code (source code) of application program 31,32,33 application program 111,112,113 of bytecode (byte code).
Object type is chosen module 120 can be taken out each application program 31,32,33 required object type (class) when carrying out from the library of object the prototype virtual machine 20 21 archives, and the archives of these object type is gathered, is organized into one must use object type archives group 121.As shown in Figure 3, with JVM is example, comprises in the library of object 21 among the JVM that a 21a of language classification group (lang), a serial and the 21b of date category group (util), one export the 21c of classification group (io), a 21d of pattern classes group (awt), a 21e of high-order pattern classes group (awt.image), a 21f of network classification group (net), (applet) 21g of HTML classification group and the 21h of other classification group.On the conventional practice, all files among the 21a of all categories group in this library of object 21,21b, 21c, 21d, 21e, 21f, 21g, the 21h all is loaded in the embedded system 10.A technical essential of the present invention promptly is, when utilizing object type to choose only to select in the library of object 21 of module 120 from prototype virtual machine 20 application program 31,32,33 to carry out the archives of the object type that must use, the archives of the object type that other is not used are not then chosen.For example, if there is an application program only to use serial and the 21b of date category group (util) in the library of object among the JVM, the 21c of classification group (io) is gone in output, (awt) 21d of pattern classes group and the 21e of high-order pattern classes group (awt.image), and can not use other object type, then object type is chosen module 120 and can the archives of these object type that must use be chosen out from JVM library of object 21 according to the specified option of user, and the archives of all object type that will choose out gather, be organized into one and must use object type archives group 121.
Compression module 130 is used for above-mentioned object type is chosen must compressing with object type archives group 121 that module 120 accumulates, obtains one whereby and must use object type archive file 131.
Digital collection module 140 can and must gather, be organized into the digital general collection 200 of an embedded system program with the application program 111,112,113 of the number of the execution time back-up system 23 in the prototype virtual machine 20, all bytecodes with the number of object type archive file 131, in order to the digital general collection 200 of this embedded system program is loaded on embedded system 10.
Above-mentioned embedded system program is simplified disposal system 100 and be can be used for embedded system program of the present invention and simplify disposal route, and this method comprises at least: (1) is compiled into the application program 31,32,33 of each source code the application program 111,112,113 of bytecode; (2) from library of object 21, take out the archives of each application program 111,112,113 all required object type when carrying out, and the archives of these object type are gathered, are organized into an object type archives group 121 that must use; (3) must compress with object type archives group 121 this, obtain one whereby and must use object type archive file 131; (4) from this virtual machine 20, obtain wherein execution time back-up system 23; (4) with the digital of the number of the application program 111,112,113 of above-mentioned bytecode, execution time back-up system 23 with must gather, be organized into the digital general collection 200 of an embedded system program with the number of object type archive file 131, in order to the digital general collection 200 of this embedded system program is loaded on embedded system 10.
Compare with prior art shown in Figure 1, because embedded system program of the present invention is simplified the application program 111,112,113 in the digital general collection 200 of embedded system program that disposal system 100 produced, all be bytecode (byte code) but not source code (source code), and do not comprise compiler 22 in the digital general collection 200 of this embedded system program, therefore the present invention can reduce the total digital code amount of virtual machine and application program, save the memory headroom of embedded system 10, and increase the system effectiveness of this embedded system 10.
Generally speaking, the embedded system program that the invention provides a kind of novelty is simplified disposal route and system, is characterized in all application programs all are compiled into bytecode (bytecode) in advance; And the archives of all required object type when only selecting these application programs in the library of object from the prototype virtual machine and carrying out, and the archives of these object type are compressed into one must use the object type archive file; And and then compiler removed and be not loaded on embedded system.These characteristics can reduce virtual machine and application program is loaded on the total digital code amount of embedded system and saves the memory headroom of embedded system, and increase the system effectiveness of embedded system whereby.

Claims (6)

1. an embedded system program is simplified disposal route, is used for simplifying processing to the required specific virtual machine of embedded system and by all application programs that this virtual machine is carried out; It is characterized in that this virtual machine comprises a library of object, a compiler and an execution time back-up system at least; This embedded system program is simplified disposal route and is comprised at least:
The source code of each application program is compiled into bytecode;
The archives of all required object type when from this library of object, taking out each application program execution, and the archives of these object type are gathered, are organized into one must use object type archives group;
Must compress with object type archives group this, obtain one whereby and must use the object type archive file;
From this virtual machine, obtain execution time back-up system wherein;
With the digital of the number of the application program of above-mentioned bytecode, execution time back-up system with must gather, be organized into the digital general collection of an embedded system program with the number of object type archive file, in order to the digital general collection of this embedded system program is loaded on embedded system.
2. embedded system program as claimed in claim 1 is simplified disposal route, it is characterized in that, this virtual machine is a Java Virtual Machine.
3. embedded system program as claimed in claim 1 is simplified disposal route, it is characterized in that, this virtual machine is the Microsoft virtual machine.
4. an embedded system program is simplified disposal system, is used for simplifying processing to the required specific virtual machine of embedded system and by all application programs that this virtual machine is carried out; It is characterized in that this virtual machine comprises a library of object, a compiler and an execution time back-up system at least;
This embedded system program is simplified disposal system and is comprised at least:
One collector is compiled into bytecode with the source code of each application program;
One object classification is chosen module, the archives of all required object type in the time of can from library of object, taking out each application program execution, and the archives of these object type are gathered, are organized into one must use object type archives group;
One compression module to compressing with object type archives group, obtains one whereby and must use the object type archive file;
One digital collection module, it is with the digital of the number of the application program of above-mentioned bytecode, execution time back-up system and must gather, be organized into the digital general collection of an embedded system program with the number of object type archive file, in order to the digital general collection of this embedded system program is loaded on embedded system.
5. embedded system program as claimed in claim 4 is simplified disposal system, it is characterized in that, this dummy machine system is the Java Virtual Machine system.
6. embedded system program as claimed in claim 4 is simplified disposal system, it is characterized in that, this system is the Microsoft dummy machine system.
CN 03156642 2003-09-05 2003-09-05 Embedded system program simplifying processing method and system Pending CN1591334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03156642 CN1591334A (en) 2003-09-05 2003-09-05 Embedded system program simplifying processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03156642 CN1591334A (en) 2003-09-05 2003-09-05 Embedded system program simplifying processing method and system

Publications (1)

Publication Number Publication Date
CN1591334A true CN1591334A (en) 2005-03-09

Family

ID=34598483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03156642 Pending CN1591334A (en) 2003-09-05 2003-09-05 Embedded system program simplifying processing method and system

Country Status (1)

Country Link
CN (1) CN1591334A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100405325C (en) * 2006-08-21 2008-07-23 北京中星微电子有限公司 Embedded software loading debugging method and system thereof
CN103106096A (en) * 2012-11-27 2013-05-15 武汉大学 Disassembly method for embedded microprocessor
CN101520733B (en) * 2008-02-27 2014-04-16 国际商业机器公司 Method and device for class loading and method for reorganizing class archived file

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100405325C (en) * 2006-08-21 2008-07-23 北京中星微电子有限公司 Embedded software loading debugging method and system thereof
CN101520733B (en) * 2008-02-27 2014-04-16 国际商业机器公司 Method and device for class loading and method for reorganizing class archived file
US9477496B2 (en) 2008-02-27 2016-10-25 International Business Machines Corporation Method and apparatus for loading classes and re-organizing class archives
CN103106096A (en) * 2012-11-27 2013-05-15 武汉大学 Disassembly method for embedded microprocessor

Similar Documents

Publication Publication Date Title
CN1149470C (en) Object heap analysis techniques for discovering memory leaks and other run-time information
US6662362B1 (en) Method and system for improving performance of applications that employ a cross-language interface
EP1011043B1 (en) Method and apparatus for loading a java application program
KR101699981B1 (en) Memory optimization of virtual machine code by partitioning extraneous information
US6446254B1 (en) Packaging memory image files
US5339406A (en) Reconstructing symbol definitions of a dynamically configurable operating system defined at the time of a system crash
US6009517A (en) Mixed execution stack and exception handling
US20050114848A1 (en) Dynamic instrumentation for a mixed mode virtual machine
US7788658B2 (en) Computer code partitioning for enhanced performance
CN1734417A (en) Application with multiple embedded drivers
US20070169069A1 (en) Method and apparatus for using pre-translated files in a virtual machine
CN101030241A (en) Method and system based on Keil C51 software protecting development
CN1242322C (en) Universal software developing supporting system
US20050060272A1 (en) Embedded system program code reduction method and system
CN1591334A (en) Embedded system program simplifying processing method and system
CN100337198C (en) A mobile communications device application processing system
CN113721928B (en) Binary analysis-based dynamic library clipping method
WO2001057654A2 (en) Preprocessing of interfaces to allow fast call of native elements
CN1588313A (en) Method and system for integrating software mounting kit
CN1703675A (en) Accelerating multimedia content
CN1165844C (en) Method for determining software module testing information of digital equipment
WO2003036473A1 (en) Native code isolation in a multi-tasking java virtual machine
CN1222874C (en) Method for extending programme function in dynamic chained computer system
CN107632934B (en) Function copying method and device in C-sharp
CN101046751A (en) System and method for installing hypervisor after user operating system has been installed and loaded

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