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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0094] 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.
[0095] Figure 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 Figure 6 As shown, the device includes a CPU core, an address adder and an application register bank.
[0096] Wherein, the CPU core is used to output the virtual address of the application program to the address adder.
[0097] The virtual address is an instruction address or a data access address when the application program is executed.
[0098] 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 ...
Embodiment 2
[0118] 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.
[0119] 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.
[0120] Among them, the temporary register group 1 includes the operating system application base address register and the operating system code offset register, which are used to store the application base a...
Embodiment 3
[0135] 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.
[0136] 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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com