Variable debugging method of embedded program dynamic storage allocation

A technology of dynamic allocation and debugging methods, applied in the direction of memory address/allocation/relocation, etc., can solve the problems of no correspondence between addresses and variable names, unable to put all variables in the global area, unable to debug embedded programs, etc. Development cycle, improving program diagnostic efficiency, and expanding the scope of debugging
CN103136107AInactive Publication Date: 2013-06-05NR ELECTRIC CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
NR ELECTRIC CO LTD
Publication Date
2013-06-05
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

A variable debugging method of embedded program dynamic storage allocation is characterized in that the logining of an interface of the structural body of an embedded program is achieved, an upper computer is provided with a program sum of debugging the structural body of the embedded program, the communication protocol of the debugging of variables is achieved, the communication protocol is debugged through an upper computer program and the embedded program, the variable name of a level to be debugged is input on an upper computer software by a user, the upper computer software reads program header files, analyzes a data structural body, and calculates the relative offset address and the data type information of each member variable, and a variable debugging table is formed, and is downloaded in a device. The software records a structural body example word address of dynamic application in a constructor, and inquires an relative address according to a debugged level variable name, the structural body word address is added, the absolute address of each member variable is obtained, and the data of the absolute address are accessed and are sent to the upper computer to display. The variable debugging method of the embedded program dynamic storage allocation overcomes the defect that in the past only the global variable of the static allocation of a compiler can be debugged, and improves the diagnosis efficiency of the program.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the category of program debugging, and in particular relates to a variable debugging method for dynamically allocating memory of an embedded program. Background technique

[0002] In the process of software development and maintenance, software debugging is a very important step, through debugging to diagnose and solve program problems. The program running in the upper computer (PC) environment can easily carry out single-step debugging or output intermediate running information because of the man-machine interface tool for integrated development and debugging. Because the embedded software runs independently in the device, it is usually debugged by connecting the debug line through the emulator. This mode requires people to know the address of the variable in advance, and the device can only support simulation in the STOR (stop real-time running) mode. debugger. There is currently no way to debug dynamically allocated memory...

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