Unlock instant, AI-driven research and patent intelligence for your innovation.

Arm assembly code debugging processing method and device

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

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
  • Arm assembly code debugging processing method and device
  • Arm assembly code debugging processing method and device
  • Arm assembly code debugging processing method and device

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

No 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
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 明亮何士双
Owner HUAWEI TECH CO LTD