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.