Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for relocated loading application program and address relocation device

An application program and relocation technology, which is applied in the direction of program control device, program loading/starting, memory address/allocation/relocation, etc., can solve problems such as complicated process, simplify the compilation process, realize dynamic loading, and improve running speed Effect

Inactive Publication Date: 2008-08-20
SUNPLUS TECH CO LTD +1
View PDF0 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the central processing unit (CPU, Central Processing Unit) of the complex instruction set computer (CISC, Complex Instruction Set Computer) architecture such as x86, there is an obvious segment concept, and it is necessary to know the segment settings in advance. Or when initializing the application, the segment register needs to be assigned, which makes the process complicated

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
  • Method for relocated loading application program and address relocation device
  • Method for relocated loading application program and address relocation device
  • Method for relocated loading application program and address relocation device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0098] This embodiment describes in detail the address relocation device that supports relocatable loading of application programs when the operating system runs in other modes than the memory access mode provided by the present invention.

[0099] Image 6 It is a schematic structural diagram of an address relocation device supporting relocatable loading of application programs according to Embodiment 1 of the present invention, as shown in Image 6 As shown, the device includes a CPU core, an address adder and an application register bank.

[0100] Wherein, the CPU core is used to output the virtual address of the application program to the address adder.

[0101] The virtual address is an instruction address or a data access address when the application program is executed.

[0102] The application register group includes the application base address register and the code offset register. The application base address register is used to save the starting address of the fr...

Embodiment 2

[0122] This embodiment describes in detail the operating system running in the memory access mode provided by the present invention and supporting relocatable loading of application programs. The temporary storage in this embodiment is a temporary register.

[0123] Figure 8 It is a schematic structural diagram of an address relocation device supporting relocatable loading of application programs according to Embodiment 2 of the present invention, as shown in Figure 8As shown, the device includes a first temporary register group, a second temporary register group, an application register group, a CPU core and an address adder. The device provided in this embodiment adds temporary register 1 and temporary register 2 on the basis of the device provided in embodiment 1.

[0124] Among them, the temporary register group-including the operating system application base address register and the operating system code offset register, are used to store the application base address ...

Embodiment 3

[0139] In this embodiment, the operating system runs under the memory access mode provided by the present invention, saves the application base address and code offset of the operating system and application programs in the memory space, and stores the pointer to the memory address storing the above information stored in a register. The first temporary storage memory in this embodiment is used to save the memory space of the operating system application base address and code offset and the first register for saving pointers; the second temporary storage memory is used to save the application base address and code offset of the application program. The memory space to move and the register two to hold the pointer.

[0140] Figure 9 It is a schematic structural diagram of an address relocation device supporting relocatable loading of application programs according to Embodiment 3 of the present invention, as shown in Figure 9 As shown, the device includes register one, regis...

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 a method for repositioning and loading an application program comprising invoking the application program, enquiring code skewing and application length of the application program, allotting idle EMS memory whose length is more than or equal to the length of application to the application program according to the allotment situation, creating progress control block, saving beginning address, code skewing and application length of the idle EMS memory, copying the code of the application program to the idle EMS memory. The invention also discloses an address reposition device supporting the application program repositioning and loading. In the method, the operation system can load the application program according to present EMS memory, avoid to manage the application program page and to analysis symbolic information and address reposition information so that dynamic loading of the application program is simplified and the application program encoded in a same address can be operated on the operation system simultaneously.

Description

technical field [0001] The invention relates to application program loading technology, in particular to a method for relocatable loading of application programs and a corresponding address relocation device. Background technique [0002] The operating system needs to load the application program before starting the application program, that is, to pre-prepare the running environment for the application program, including preparing the memory environment for the application program before running. [0003] In existing embedded operating systems, there are two main ways to load applications: [0004] The first is that in the absence of a hardware memory management unit (MMU, Memory ManagementUnit) or without using a hardware MMU, the embedded operating system loads the application program in the following manner: [0005] The embedded operating system is compiled and linked with all preconfigured application threads. When the operating system is running, it starts the execu...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F12/08
Inventor 陈立勤
Owner SUNPLUS TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products