A monitoring method of embedded program execution sequence

A program execution and embedded technology, which is applied in the monitoring field of embedded program execution sequence, can solve problems such as multiple faults, residual, and inability to monitor instruction statements, and achieve the effect of improving coverage

Active Publication Date: 2018-05-25
NANJING SCIYON AUTOMATION GRP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These methods often have many fault residues, and each instruction statement cannot be monitored. In an embedded system with a complex function call level, these methods cannot be detected, let alone processed in time to eliminate hidden dangers.

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
  • A monitoring method of embedded program execution sequence
  • A monitoring method of embedded program execution sequence
  • A monitoring method of embedded program execution sequence

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention will be described in detail below in conjunction with the drawings.

[0029] Such as figure 1 As shown, the specific steps of the method for monitoring the execution sequence of embedded programs of the present invention are:

[0030] The global sequence flag is judged at the function entry. If it is wrong (not the default value), then exception processing is performed. After the correct pass, it is judged whether the function is returned by the next-level function. If not, define a new local sequence flag ( As the first definition, the corresponding function of this level is the highest level function), and the initial value of the new local sequence flag is assigned, and then go to the next step, if it is returned by the next level function, go directly to the next step;

[0031] Next, execute this level function; if there is a nested call to the sublevel function in this level function, enter the next level function, still first judge the global sequen...

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 discloses a monitoring method for an embedded program execution order. The monitoring method comprises the steps of setting a local order mark corresponding to a function of each level for an embedded program; regularly changing the value of the corresponding local order mark after the execution of each program statement of the function of each level is finished; and after the execution of the function of each level is finished, judging whether an exception that the statement is not executed exists or not according to the value of the corresponding local order mark. With the adoption of the monitoring method, the coverage degree of program monitoring can be effectively increased; and the method can be used for monitoring the program execution order of any calling depth.

Description

Technical field [0001] The invention belongs to the technical field of program execution monitoring in embedded software, and specifically relates to a method for monitoring the execution sequence of embedded programs. Background technique [0002] In embedded products, a program often runs uninterrupted for a long time. Once errors occur, they will continue to accumulate. The errors will not be eliminated until the next time the system is restarted. Serious faults accumulate for a long time, and even damage the product. . Therefore, it is very important to monitor the execution of the program, find errors in time, and take effective solutions to protect the product itself, extend the service life, and provide convenience for users. [0003] There are many ways to monitor program execution. Some implement monitoring through hardware watchdogs, some add some flags in key positions of the software code to detect the degree of execution of the program, and others divide the code into...

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 Patents(China)
IPC IPC(8): G06F11/30
CPCG06F11/3051
Inventor 刘国耀曹雨赵剑峰査汀杭哲
Owner NANJING SCIYON AUTOMATION GRP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products