摘要 |
The method of the invention substantially consists in writing in the program code a packet of pseudo-instructions ("upload point") containing the name of a variable to be monitored, in order to check if the source program is functioning correctly. Such pseudo-instructions are written in specific points of the program code, in which may be necessary to monitor the value of certain variables, and are enabled by a test computer. Before the compilation of the source program, a program ("TESTERPARSER") scans each instruction of the source program from start to end, substituting each pseudo instruction with corresponding real instructions constituting a certain subroutine. The resulting program after this substitution ("intermediate program") is compiled, thus obtaining the compiled program that will be executed by the user system. If the considered pseudo instruction belongs to an enabled upload point, its corresponding subroutine will display on the test system, during the run of the compiled program and without stopping it, the value of the variables to be monitored. In this way the program can be monitored in real time during its run, and may be stopped only when the programmer decides so, because an incorrect value of a variable has been detected. This expedient is particularly useful in debugging cyclically running program, as in the case of DSP (fig. 3). <IMAGE> |