Application program dynamic loading method based on microkernel operating system

An application, dynamic loading technology, applied in the direction of program loading/starting, program control devices, etc., can solve the problems of prolonging the product development cycle and high cost of the terminal product, and achieving the requirements of improving development efficiency, reducing complexity, and reducing memory requirements. Effect

Inactive Publication Date: 2009-07-01
ANYKA (GUANGZHOU) MICROELECTRONICS TECH CO LTD
View PDF0 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Static loading of applications will lead to two serious consequences: first, there are more and more applications, and the demand for memory is increasing, which leads to higher and higher costs of end products; second, once an application If changes are needed, the entire system needs to be re-debugged and tested, which greatly prolongs the product development cycle

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application program dynamic loading method based on microkernel operating system
  • Application program dynamic loading method based on microkernel operating system
  • Application program dynamic loading method based on microkernel operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Combine below figure 1 The implementation process of the present invention is described in detail.

[0023] Suppose the source code of the module is A.c:

[0024] int gb_data1 = 9;

[0025] int gb_bss1;

[0026] int myfunc1()

[0027] {

[0028] gb_bss1=6;

[0029] return gb_data1+gb_bss1;

[0030] }

[0031] int vme_main()

[0032] {

[0033] return myfunc1();

[0034] }

[0035] Use the GCC compiler to compile the above source code into ELF object module A.so.

[0036] The following is the loading process of the target program:

[0037] a. Analyze the format of the target program, calculate and allocate the memory size required by the code segment and data segment in the module;

[0038] (1) First parse the target module A.so file, and analyze its section table distribution information:

[0039] All ELF object files compiled into public standards, no matter whether the c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an application program dynamic loading method based on a micronucleus operating system, which comprises the following steps: analyzing the format of an object program, calculating and distributing the size of memory which is needed by a code segment and a data segment in a module, coping the code segment and the data segment to the memory, determining a symbol which needs to modify an address according to relocation information of an object file, finding out an original migration of the symbol which needs to modify from a symbol table and a string table, calculating a practical operation address of the symbol, and filling the practical operation address of the symbol to the object program. The application program dynamic loading method greatly reduces the demands of the system for the memory, and does not need the supporting of the operating system which is based on the virtual memory technology. Furthermore, each application program also just pays attention to the development and the testing itself, and the application program after upgrading can be put into service through being directly covered on an original file. Different application programs are coupled through an interface, thereby effectively increasing the development efficiency, and reducing the development complexity.

Description

technical field [0001] The invention relates to an application program dynamic loading method based on a micro-kernel operating system. Background technique [0002] In recent years, with the continuous advancement of technology, more and more functions have been added to mobile handheld devices such as mobile phones, PDAs, MP3s, and PMPs. For developers, every additional function means adding several applications. All applications in mobile handheld devices are executed through memory. Therefore, how to maximize the reasonable use of memory has become a key issue for software developers. [0003] Currently available technical solutions are: [0004] In terms of PC intelligent operating system: Windows has Microsoft's dynamic module solution based on PE format (such as dll dynamic link library, exe executable file); Unix / Linux has a public standard dynamic sharing solution based on ELF format (such as so dynamic sharing file, bin executable). [0005] Embedded intellige...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/445G06F9/44
Inventor 张木军赵俊化蓝彩萍胡胜发
Owner ANYKA (GUANGZHOU) MICROELECTRONICS TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products