Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and system for debugging native code

A code and native technology, applied in the computer field, can solve problems such as complex implementation

Active Publication Date: 2019-03-19
MICROSOFT TECH LICENSING LLC
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Implementing a debugger for interpreted code is usually less complex than implementing a debugger for native code
However, the response time of a debugger for native code is usually faster than for interpreted code

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
  • Method and system for debugging native code
  • Method and system for debugging native code
  • Method and system for debugging native code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] overview

[0018] You can debug a program by compiling it to native code and debugging the native code. At defined points in the program, debugging can transition from native mode to interpreted mode, and debugging can continue on the interpreted code. Debugging operations involving execution control: pausing execution, resuming execution, stepping into, stepping out, or stepping over code fragments, etc., can occur in interpreted mode. Debug operations involving inspection and modification of variables can occur in native mode. Dual-mode debuggers combine the speed of native-mode debugging with the simplicity of interpreted-mode debugging.

[0019] Debug native code by switching from executing in native mode to executing in interpreter mode

[0020] Figure 1a An example of a web browsing environment 100 is shown in accordance with aspects of the subject matter described herein. as in Figure 1a As shown in , environment 100 may include one or more of: computin...

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 dual-mode debugger can debug native code or interpreted code. Transitions between modes can be triggered by defined exit conditions. A program can be debugged by attaching a debugger and compiling the program to native code under the debugger. At defined points in the program, debugging can transition from native mode to interpreted mode. Debugging of native code can be stopped, the current state can be captured, and the interpreter can be instantiated. An interpreter stack can be created and filled with the captured current state. Debugging operations that involve execution control: pausing execution, resuming execution, stepping in, out, or stepping through code fragments, etc., can happen in interpreted mode, which is usually easier to implement. Debug operations involving inspection and modification of variables can occur in native mode.

Description

technical field [0001] The present invention relates to computer technology, and more particularly, to methods and systems for debugging native code. Background technique [0002] A compiler can produce executable code by compiling source code into code that can be executed by a particular processor. This type of processor-specific code is called "native machine code," or machine instructions that can be executed by a particular type of processor, but not by any type of processor. Another type of compiler takes source code and produces intermediate code or virtual machine byte code that is not processor specific. The intermediate code is typically received by an intermediate language compiler (eg, a just-in-time (JIT) compiler) and compiled into native machine code just before program execution. Intermediate code is not platform-specific. [0003] An interpreter reads source or intermediate code and executes the code statement by statement without converting the code to n...

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
CPCG06F11/3664G06F8/53G06F11/3636
Inventor M·科尔陶切夫N·坎德沃尔A·甘地
Owner MICROSOFT TECH LICENSING LLC
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