Binary system translation method and device based on execution tree depth
A translation device and binary technology, applied in the computer field, can solve the problem of low performance of super blocks and achieve the effect of improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0022] figure 1 is a flow chart of the binary translation method according to the first embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:
[0023] Step S0: Start to construct the super block, initialize the execution tree depth to 0, obtain the preset execution tree depth threshold, and start translation from the basic block where the preset start address is located.
[0024] Step S1: translate the obtained basic blocks.
[0025] Step S2: If the current instruction of the translated basic block is a direct jump instruction, obtain the basic block entered by the direct jump instruction, and return to step S1.
[0026] Step S3: If the current instruction of the translated basic block is a conditional jump instruction, obtain the basic block after the jump of the conditional jump instruction and the next basic block of the conditional jump instruction, and add 1 to the depth of the execution tree, and return to Step S1.
...
no. 2 example
[0034] figure 2 It is a flow chart of the binary translation method according to the second embodiment of the present invention. In this embodiment, when binary translation is performed from the address of an instruction, when a function call instruction or a conditional jump instruction is encountered on the current execution path, The instruction translation will be translated simultaneously on the current execution path and the execution path to be jumped to. Therefore, in this embodiment, the execution depth is also referred to as the translation depth. The translation depth can be flexibly set according to specific application scenarios. The greater the translation depth, the more basic blocks that make up the super block. More basic blocks will bring more code optimization effects, and the performance of the execution program will be improved accordingly. But the negative effect of more basic blocks is that the translation time becomes longer. After the translation of...
no. 3 example
[0046] image 3 is a block diagram of a binary translation device based on execution tree depth according to the third embodiment of the present invention, such as image 3 As shown, the translation device includes an initialization module 10 , a translation module 20 , a first acquisition module 30 , a second acquisition module 40 , a third acquisition module 50 and a judgment module 60 .
[0047] Among them, at the beginning of the translation, the initialization module 10 initializes the translation. Specifically, when the initialization module 10 starts to construct the super block, it initializes the depth of the execution tree to 0, and obtains a preset threshold of the depth of the execution tree. The basic block where the start address is located starts to translate.
[0048] First, the translation module 20 starts to translate the basic block where a certain start address in the binary program to be translated is located, and translates the basic blocks acquired by e...
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