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

Program automatic debugging method

A procedural and automatic technology, applied in the direction of response errors, etc., can solve the time-consuming and labor-intensive problems of manual inspection, and achieve the effects of wide application range, easy implementation, and manpower saving

Inactive Publication Date: 2012-11-21
徐下兵
View PDF1 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The current error checking method generally uses manual inspection, but manual inspection is often time-consuming and labor-intensive, and the result is half the effort, because even for a slightly complicated system, the program volume often reaches tens of thousands, hundreds of thousands, or even hundreds of thousands of lines. One can imagine the difficulty

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be further elaborated below according to specific embodiments.

[0028] The method of the present invention mainly includes three steps: first, read the program Y, find out all the variables used by the program Y according to the specific chip syntax and instructions, and generate a 1-to-1 relationship list between variables and page addresses. The relationship list A is also a list of variables and page addresses in a many-to-one format, that is, one page address corresponds to at least one variable. Then, read the program Y again, preprocess it to make it easy to read, identify and check, and keep the corresponding relationship with the program Y to generate a simplified version of the program B. For example, the program Y is initially compiled according to the specific chip syntax and its instructions: replace the macros in the program Y, delete comments, useless pseudo-instructions, etc. to standardize the program Y; or extract the pure co...

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 program automatic debugging method which includes the following steps: 101, reading and analyzing an assembly source program Y to obtain all variables used by the assembly source program Y, and generating a relation list A of the variables and page addresses respectively corresponding to the variables; 102, preprocessing and standardizing the assembly source program Y to form an assembly source program B easy to distinguish and check; and 103, performing page switching correctness check for the assembly source program B and finding and reporting page faults. By aid of the program automatic debugging method, page address faults in the programs can be fast and accurately checked, further invalid codes in the programs can be checked easily, manpower is saved, and efficient proceeding of development work is ensured. The program automatic debugging method is wide in application range and can be widely used for debugging of the programs with data spaces or program spaces having distinguishing of pages or section. The program automatic debugging method includes page address fault check for the programs with page / section characteristic storage spaces and of chips of digital signal processors (DSPs), micro-programmed control units (MCUs), microprocessor units (MPUs) and the like.

Description

technical field [0001] The invention relates to a method for automatically checking errors in programs, in particular to a method for automatically checking errors in pages in programs. Background technique [0002] For embedded software, most of them have to deal directly with the hardware. According to the differences of embedded systems, the processors used are also different, such as DSP (Digital Signal Processing) and single-chip microcomputer. The programs of these processors are written in assembly language, or a mixture of high-level language and assembly, but the core part is written in assembly language to improve efficiency. For some DSPs and single-chip microcomputers, the data area and the program area are paged (also called segments), just like the early PCs, each segment of memory and data is 64k bytes. The difference is that a page of DSP and microcontroller is 64 or 128 or other 2 to the nth power (n is a positive integer greater than 0) storage units. Ta...

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
IPC IPC(8): G06F11/07
Inventor 徐下兵
Owner 徐下兵
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