Supercharge Your Innovation With Domain-Expert AI Agents!

Multi-level assembly code snippet analysis method, system and device

A technology of code fragments and analysis methods, applied in the field of computer information processing, can solve the problems of low efficiency of file reading data, inability to meet custom modification and replacement, etc., and achieve the effect of reducing workload and error probability

Pending Publication Date: 2022-03-22
SUN YAT SEN UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These code features are often only manifested in a small range, which cannot meet the requirements of developers for custom modification and replacement of codes in any specified range. The efficiency of file reading data is also very low.

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
  • Multi-level assembly code snippet analysis method, system and device
  • Multi-level assembly code snippet analysis method, system and device
  • Multi-level assembly code snippet analysis method, system and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. For the step numbers in the following embodiments, it is only set for the convenience of illustration and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art sexual adjustment.

[0038] refer to figure 1 and figure 2 , the present invention provides a kind of multi-level assembly code fragment parsing method, and this method comprises the following steps:

[0039] S1. Obtain the assembly file and read the assembly code according to the assembly file;

[0040] S1.1. Obtain the corresponding assembly file according to the source code;

[0041] S1.2. Compile the assembly file based on the compiler, and add the "-S" option to the compiler in the command line to obtain the assembly code.

[0...

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, a system and a device for analyzing and modifying a multi-level assembly code snippet. The method comprises the following steps of: acquiring an assembly file and reading an assembly code according to the assembly file; converting the assembly codes into intermediate format representation and connecting in sequence to obtain a linear linked list; and analyzing the linear linked list to obtain code information of different levels. The system comprises a reading module, a connection module and an analysis module. The device comprises a memory and a processor used for executing the multi-level assembly code snippet analysis and modification method. By using the method and the device, information of different levels of the assembly codes can be analyzed, and the assembly codes of the corresponding levels can be replaced according to user requirements. The multi-level assembly code snippet analyzing and modifying method, system and device can be widely applied to the technical field of computer information processing.

Description

technical field [0001] The invention relates to the technical field of computer information processing, in particular to a method, system and device for analyzing multi-level assembly code fragments. Background technique [0002] Because the assembly code loses the original abstract semantics of the high-level language during the compilation process, the logical relationship of the code is difficult to understand. Developers need to handle the storage allocation and input and output of each instruction and each data, and also need to clarify the program running process. The working status of each step in the process, so manually modifying the assembly code is a huge cost for the developer. At the same time, the code volume of the assembly code is generally large, and the manual modification of the developer is more error-prone. At the same time, the method of inline assembly is only applicable to The replacement of some small code fragments and the extensive use of inline as...

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
IPC IPC(8): G06F8/75G06F8/41G06F8/52
CPCG06F8/75G06F8/447G06F8/52
Inventor 葛天傲莫泽威张献伟
Owner SUN YAT SEN UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More