Method and system for dynamic code switching during debugging

A dynamic and code technology, applied in memory systems, program control design, software engineering design, etc., can solve problems such as slow program running speed and consumption of memory resources, and achieve the effect of saving memory usage, high performance, and shortening program execution time

Active Publication Date: 2017-05-03
INT BUSINESS MASCH CORP
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method has the following problems: when each subroutine or most of the subroutines are debugged, the optimized target code of each subroutine is gradually jumped to the debuggable target code until all jump to the debuggable target code Debugging the target code, correspondingly, the running speed of the program will become slower and slower; in addition, using this method, both versions of the target code need to be loaded into the memory, which will greatly consume memory resources

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 dynamic code switching during debugging
  • Method and system for dynamic code switching during debugging
  • Method and system for dynamic code switching during debugging

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0029]Those skilled in the art know that the present invention can be implemented as a system, method or computer program product. Therefore, the present disclosure can be specifically implemented in the following forms, namely: it can be complete hardware, it can also be complete software (including firmware, resident software, microcode, etc.), and it can also be a combination of hardware and software. Called a "circuit", "module" or "sys...

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

An optimized version of a binary and a non-optimized debuggable version of a binary for each compiling unit in the source code program are generated. The optimized versions of binaries of all compiling units are loaded into memory for debugging, which is monitored. In response to determining that a first compiling unit in the source code program is to be debugged, the non-optimized debuggable version of the binary is loaded into a memory location that was previously used by the optimized version of the binary. In response to determining that debugging of a second compiling unit in the source code program is to be cancelled, the optimized version of the binary of the second compiling unit is loaded into a memory location that was previously used by the non-optimized debuggable version of the binary.

Description

technical field [0001] The present invention relates to program debugging, in particular, the present invention relates to a method and system for dynamically switching codes in the debugging process. Background technique [0002] When programming, most applications are debugged at the source code level. The source code is generally written in a high-level language, and the high-level language is mainly compared to the assembly language. It is a programming that is closer to natural language and mathematical formulas. It is basically separated from the hardware system of the machine and written in a way that is easier for people to understand. program. Therefore, the programmer's debugging operations such as stepping, setting breakpoints, etc. are based on the high-level language source code view. However, in fact, what the debugger receives, runs, and operates is the binary code (binary) (compiled version of the source code) of the program to generate the running result. ...

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): G06F9/45
CPCG06F11/3624G06F8/443G06F11/3628G06F11/3664
Inventor 蒋健纪金松官孝峰张嗣元
Owner INT BUSINESS MASCH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products