Assembly program control flow path detection method and device
An assembler and detection method technology, which is applied in the field of assembler control flow path detection of domestic platforms, can solve the problems of weak pertinence, difficult adjustment and maintenance, and high difficulty of domestic platforms, and is easy to modify and maintain, conducive to optimization, and targeted at strong effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] Such as Figure 5 Shown, a kind of assembly program control flow path detection method of the present invention, the steps are as follows:
[0059] Step 101: preprocessing the assembly program, that is, traversing the assembly program, deleting the comments of the code segment in the assembly program, renaming the integer register, storing the content of the non-code segment in the assembly program and recording its position in the assembly program.
[0060] The code segment in the assembler includes comment information, which starts with the symbol "#". In practice, the integer registers of instruction operands use both register aliases and application binary interface names (ABIName), such as Shenwei integer registers. In order to facilitate subsequent processing, the present invention renames the integer registers, that is, uniformly replaces them with application program binary interface names. Store the contents of non-code segments and record where they are loca...
Embodiment 2
[0116] Such as Figure 11 As shown, a kind of assembly program control flow path detection device of the present invention comprises:
[0117] The preprocessing module 201 is used to traverse the assembler, delete the comments of the code segment in the assembler, rename the integer register, store the content of the non-code segment in the assembler and record its position in the original assembler;
[0118] The control flow generating module 202 is used for traversing the preprocessed assembly program, and obtaining the control flow graph CFG of the assembly program through the auxiliary table AT and the control flow raw data CRD;
[0119] The path label insertion module 203 is used to analyze the control flow original data CRD, read the instruction sequence of each basic block BBN in the control flow original data CRD, and insert the path label at the head of the instruction sequence of the basic block BBN to generate a new control flow raw data CRD;
[0120] The program ...
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