Linking method, linker and computer system
A linker and linked list technology, applied in the computer field, can solve the problems of program performance and efficiency reduction, consuming large code processing time, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0154] see figure 1 As shown, this embodiment provides a linking method, which mainly includes the following steps:
[0155] Step 101: Determine whether a long jump will occur, if yes, execute step 102, otherwise, execute step 108.
[0156] After opening the input file, input the input file sequence consisting of all object files in the input file to the linker, and determine whether the function jump of each input object file is a long jump according to the input file sequence, if there is a certain function jump If it is converted to a long jump, it is determined that a long jump will occur, otherwise, a long jump will not occur.
[0157] In this step, the specific implementation of determining whether the function jump of each input target file is a long jump according to the sequence of input files can be realized by using, but not limited to, the existing technology. It can also be implemented, but not limited to, according to any of the following long jump judgment tec...
Embodiment 2
[0193] see Figure 4 As shown, this embodiment provides a linking method, which mainly includes the following steps:
[0194] Step 401: Determine whether a long jump will occur, if yes, execute step 402, otherwise, execute step 407.
[0195] For details of this embodiment, but not limited to, refer to what is shown in step 101 in Embodiment 1, and details are not described here.
[0196] Step 402: Create a transit code segment.
[0197] For details of this embodiment, but not limited to, see step 102 in Embodiment 1, and details are not described here.
[0198] Step 403: Create intermediate code segment relocation information in the relocation segment of the input object file.
[0199] For details of this embodiment, but not limited to, refer to what is shown in step 103 in Embodiment 1, and details are not described here.
[0200] Step 404: segment mapping.
[0201] For details of this embodiment, but not limited to, refer to what is shown in step 104 in Embodiment 1, an...
Embodiment 3
[0210] see Figure 5 as shown,
[0211] This embodiment provides a linker, specifically, the linker is predefined or configured to adopt a partial linking manner. The linker in this embodiment mainly includes: a long jump determination unit 501, a transit code segment creation unit 502, a transit code segment relocation information creation unit 503, a segment mapping unit 504, a relocation unit 505, a call adjustment information writing unit 506, and a partial link unit 507 .
[0212] The connection relationship and working principle of each part are as follows:
[0213] The long jump determining unit 501 determines whether the function jump of each input object file is a long jump according to each input object file in the input object file sequence;
[0214] When the function jump of any one of the input target files is a long jump, the transfer code segment creation unit 502 will create a corresponding link for each of the long jumps in the input target file where the c...
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