Unlock instant, AI-driven research and patent intelligence for your innovation.
Arm assembly code debugging processing method and device
What is Al technical title?
Al technical title is built by PatSnap Al team. It summarizes the technical point description of the patent document.
A processing method and code technology, applied in the field of communication, to achieve the effect of flexible development
Active Publication Date: 2017-11-28
HUAWEI TECH CO LTD
View PDF5 Cites 0 Cited by
Summary
Abstract
Description
Claims
Application Information
AI Technical Summary
This helps you quickly interpret patents by identifying the three key elements:
Problems solved by technology
Method used
Benefits of technology
Problems solved by technology
[0006] The invention provides an ARM assembly code debugging processing method and device, which are used to solve the problem that the ARM assembly code must be debugged using a specific emulator
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
Click on the blue label to locate the original text in one second.
Reading with bidirectional positioning of images and text.
Smart Image
Examples
Experimental program
Comparison scheme
Effect test
example 1
[0058] Example 1: For the ARM basic instruction add instruction, the specific implementation is as follows:
[0059]
[0060]
example 2
[0061] Example 2: For Neon's vmull.u16 emulation instruction, the specific implementation is as follows:
[0062] void VMULL::u16(Qd, Dn, Dm, lane)
[0063] {
[0064] Extract the high and low 16 bits of Dn[0]
[0065] Extract the high and low 16 bits of Dn[1]
[0066] Multiply the lower 16 bits of Dn[0] with the lane-th element of Dm, and put the result in Qd[0]
[0067] Multiply the upper 16 bits of Dn[0] with the lane-th element of Dm, and put the result in Qd[1]
[0068] Multiply the lower 16 bits of Dn[1] with the lane element of Dm, and put the result in Qd[2]
[0069] Multiply the lower 16 bits of Dn[1] with the lane element of Dm, and put the result in Qd[3]
[0070]}
example 3
[0071] Example 3: For Neon's vmull.s32 simulation instruction, the specific implementation is as follows:
[0072] void VMULL::s32(Qd,Dn,Dm)
[0073] {
[0074] Extract the high and low 16 bits of Dn
[0075] Extract the high and low 16 bits of Dm
[0076] Multiply the lower 16 bits of Dn and Dm by 64 bits, and put the result in the lower 32 bits of Qd
[0077] Multiply the high 16 bits of Dn and Dm by 64 bits, and put the result in the high 32 bits of Qd
[0078]}
[0079] Further, based on C++IDE for debugging, ASC RT can be debugged in any C++IDE debugger (Debugger). Take the actual code fragment in Table 3 below as an example to illustrate.
[0080] table 3
[0081]
[0082] Start the C++ IDE, assuming that the "vmull.s32(q8,d0,d4);" statement is reached, and debug the statement, the following code is the actual code logic of vmull.s32(q8,d0, d4) in ASC RT :
[0083]
[0084] Among them, Qd, Dn, and Dm are three formal parameters, which are consistent with the...
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
Login to View More
Abstract
Embodiments of the present invention provide a method and device for debugging and processing ARM assembly code, the method comprising: converting the ARM assembly code into ARM assembly simulation code ASC according to a conversion rule, and the ASC is an ARM assembly code represented by C++ syntax; The ASC is debugged by using the C++ integrated open environment. In the embodiment of the present invention, the ARM assembly code is converted into ASC according to the conversion rules, and then the ASC can be debugged by using the C++ IDE, without relying on a professional specific emulator, and fast support for the latest ARM The instruction set makes the development of related products more flexible and scalable.
Description
technical field [0001] The invention relates to communication technology, in particular to an ARM assembly code debugging processing method and device. Background technique [0002] The Advanced RISC Machines (ARM) architecture has been widely used in mobile platforms, such as mobile phones and tablet computers. Due to the sensitivity to power consumption, developing applications with low power consumption and high performance has become one of the key ways to improve user experience. [0003] For performance-sensitive code, it is generally written in assembly and its variants, such as inline assembly, Intrinsic, etc., where Intrinsic is a syntax specific to a certain compiler to replace inline assembly. Both inline assembly and Intrinsic require specific compiler support. In particular, different Intrinsic also require different compiler support, so using Intrinsic will reduce the portability of the code. Ordinary compilation only needs the support of the corresponding 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
Application Date:The date an application was filed.
Publication Date:The date a patent or application was officially published.
First Publication Date:The earliest publication date of a patent with the same application number.
Issue Date:Publication date of the patent grant document.
PCT Entry Date:The Entry date of PCT National Phase.
Estimated Expiry Date:The statutory expiry date of a patent right according to the Patent Law, and it is the longest term of protection that the patent right can achieve without the termination of the patent right due to other reasons(Term extension factor has been taken into account ).
Invalid Date:Actual expiry date is based on effective date or publication date of legal transaction data of invalid patent.