A Dynamic Loading Mechanism Based on .COM Files
- Author
- YangZhiXiang
- Advisor
- WangZuo
- School
- Chongqing University
- Major
- Computer Software and Theory
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 59
- Citations
- 0
Abstract
The wide application of the embedded system needs good software system to support .the systematic expansile ability become one basic demand already with embedded system deep to develop, system needs urgently one mechanism that can dispose system at runtime, that is to say system at runtime may add dynamically the module, this kind of mechanism is dynamic loading mechanism that this thesis will study. Dynamic loading mechanism in this thesis is that application starts from scratch. So system only needs a dynamic loading mechanism, which can load dynamically the module and dispose the embedded systems which suit different uses.We have analyzed several kinds of loading mode existing at present in this thesis: the java_based dynamic loading mode, the dynamic loading mode of embedded Linux and the principle of the dynamic linking library in windows. On this basis we have put forward the principle and the process of dynamic loading mechanism under the general meaning. The principle of dynamic loading mechanism requires the ability of dynamic loading and dynamic analyzing. Dynamic loading mechanism use dynamic linking principle and the module is linked to system only while be called and carried out. Dynamic loading can be divided into three operation: download, load and unload. Download finishes download module from long-distance to native. Load operation is to finish to read module into memory, then to analyze unresolved reference outside module. Unload the module from memory when it is no longer used.Based on the general principle of dynamic loading and the key problems of dynamic loading in-depth analysis and study, this dissertation brings forward a dynamic loading mechanism based on .COM Files (This thesis called DLoader). After analysing some key problems in-depth as a dynamically loading module—.COM module format , .COM module name space management and .COM module loading, and so on,we presents the dynamic loading system prototype program design of the special environment.The program uses the real-time kernel ofμC/OS-Ⅱto manage tasks of the dynamic loading system, and using the dynamic loading mechanism to load dynamically loaded modules.Despite the dynamic loading system is not totally from scratch on the dynamic allocation of the system, but, it can provide us to the eventual realization of the dynamic loading mechanism a theoretical and technical experience on the accumulation, and it can provide a good reference for our ultimate realization of the dynamic loading mechanism. Finally, we let the dynamic loading mechanism work on remote automatic control system,and it can work well.In this paper, the dynamic loading system can ensure real-time and embedded security, and at the same time it makes the system with a high degree of flexibility and scalability. The entire system has smaller fixed framework, which can be dynamically loaded modules to meet the needs of different applications, and there is a great value to the real-time updating and software upgrading
Table of contents
Abstract 3-4
ABSTRACT 4-9
1 Introduction 9-14
1.1 issues raised and research significance 9-10
1.1.1 issues raised 9
1.1.2 research significance 9-10
1.2 research status 10-11
the
thesis 1.3 research purposes
1.4 dynamically loaded and development direction of 11-12
1.5 papers 12
1.6 paper structure 12-14
the
several dynamic loading mode analysis 14-21
2.1 JAVA-based dynamically loaded 14-15
2.1.1 J2ME Introduction 14-15
2.1.2 implementations 15
2.2 WINDOWS dynamic link library principle 15-17
the
concept of 2.2.1 Dynamic Link Library 15-16
2.2.2 dynamic link library works 16
2.2.3 dynamic link library implementation 16
2.2.4 dynamic link library principle embedded systems applications 16-17
2.3 Embedded LINUX dynamic loading mode analysis 17-20
2.3.1 Introduction to Embedded Linux 17-18
2.3.2 embedded Linux dynamic loading mechanism 18-20
2.4 several load analysis and compare 20
2.5 of this thesis dynamically loaded concept 20-21
3 modules dynamically loaded principle 21-35
3.1 link 21-24
3.1.1 target file 21-22
3.1.2 Links 22-24
3.2 loaded 24-25
3.3 relocatable 25-27
3.4 running 27-28
3.5 dynamic loading mechanism principle 28-35
3.5.1 Dynamic loading mechanism general principles 28-32
3.5.2 dynamic loading mechanism model to establish 32-33
3.5.3 Dynamic loading mechanism of the process of algorithm design 33-35
4 COM file module the format dynamically loaded way 35-46
4.1 the COM file module loaded 35-39
4.1.1 loadable module binary file format 35-36
4.1.2 the COM file module format Analysis 36-38
4.1.3. COM file module loaded principle 38-39
4.2 COM file module name space management 39-41
4.3 dynamically loaded modules dynamic memory allocation management 41-43
4.4 dynamic loading system memory space arrangements 43-46
the
dynamically loaded system design and realization 46-67
5.1 loaded program proposed and feasibility analysis 46-47
5.2 dynamic loading system prototype program design 47-49
5.3 DLOADER demand analysis 49
5.4 DLOADER module structure and working principle 49-54
5.4.1 definition of logic function module structure of its core data 49-54
5.5 DLOADER basic module program flow 54-57
5.5.1 initialization process 54-55
5.5.2 request process 55
5.5.3 loading process 55-56
5.5.4 uninstall process 56
5.5.5 module image management 56-57
5.6 DLOADER key technical analysis 57-64
5.6.1 control over the transfer 57-58
5.6.2 loaded interrupt 58-64
5.7 dynamic loading system on the remote automatic monitoring system application 64-67
6 full-text content summary of 67-68
the
thesis 6.1 research and summarize 67
6.2 further work 67-68
Acknowledgements 68-69
the
References 69-71
the
Appendix: catalog of papers published by the author during the master's degree 71
Related dissertations
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- The Study of Remote Video Monitor System Baced on ARM
- Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
- Video Surveillance System Based on Embedded Technology Research
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Research and implementation of remote monitor system of ship based on the technology of the Internet of things
- Design of Video Surveillance Software Based on Ti Dm6446Processor
- Data Acquisition System of Cavern Based on Embedded Web Server
- Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
- Research on the Indoor Air Monitoring System Based on Embedded Linux
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
- Research on Meteorological Data Acquisition and Processing System
- The Research of the Design and Application for Embedded Remote Terminal Unit
- Design and Implementation of Magnetic Card Detection System Based on Embedded System
- Design of distributed control system based on embedded platform
- Design and Implementation of Car Embedded Systems to Multimedia Intelligent Terminal
- The Research of CANopen Protocol Based on Embedded Systems
- The Research and Design of Smart Home System Based on Zigbee Technology