Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code dynamic switching method and system for debugging process

A dynamic and code-based technology, applied in memory systems, program control design, software engineering design, etc., can solve problems such as slow program running speed and memory resource consumption, and achieve the effects of saving memory usage, high performance, and maintaining performance

Active Publication Date: 2014-09-24
IBM CORP
View PDF7 Cites 8 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
  • Code dynamic switching method and system for debugging process
  • Code dynamic switching method and system for debugging process
  • Code dynamic switching method and system for debugging process

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

The invention relates to a code dynamic switching method and a system for a debugging process. The method comprises the steps as follows: firstly, the binary code of a first version and a second version is created for each compilation unit in a source code program to be debugged, wherein the first version is an optimized version, while the second version is a non-optimized easily-debugging version; secondly, the binary code of the first version of each compilation unit is loaded into a memory; thirdly, the debugging operation of a user is monitored; fourthly, for responding to the determination that one of the compilation unit in the source code program is to be debugged, the binary code of the second version of the compilation unit is dynamically reloaded to the storage address with the same binary code as that of the first version of the compilation unit in the memory; fifthly, for responding to the determination that the debugging of one of the compilation unit in the source code program is cancelled, the binary code of the first version of the compilation unit is dynamically reloaded to the storage address with the same binary code as that of the second version of the compilation unit in the memory.

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 Applications(China)
IPC IPC(8): G06F9/45
CPCG06F8/443G06F11/3628G06F11/3624G06F11/3664
Inventor 蒋健纪金松官孝峰张嗣元
Owner IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products