Abnormal handling method and device under embedded type C language environment

An exception handling, C language technology, applied in the C language field, can solve the problems of undesired system and shorter and shorter interruption time requirements.

Inactive Publication Date: 2009-12-09
HUAWEI TECH CO LTD
View PDF0 Cites 37 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] After careful study of the existing technology, the inventor found that with the increasing complexity of the software, it takes longer for the system to restart, and the product requires shorter and s...

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
  • Abnormal handling method and device under embedded type C language environment
  • Abnormal handling method and device under embedded type C language environment
  • Abnormal handling method and device under embedded type C language environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

[0031] In the embodiment of the present invention, for exceptions in the embedded system under the C language environment, targeted exception handling programs can be written according to different scenarios, and partial exception handling and recovery attempts can be performed without restarting the system for all exceptions. Continue to execute after the exception is handled, thereby improving the efficiency of code operation under normal processes and simplifying programming. The implementation of the exception handling framework (for easy understanding, it can be called an exception handling device) in the embedded system in the C language environment does not depend on the compiler, and provides users with a method for finely managing the exception ...

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 embodiment of the invention provides an abnormal handling method under an embedded type C language environment, comprising the following steps: monitoring an operating program code snippet which needs to be protected, if the operating program code snippet is abnormal, the abnormality is expelled, wherein the abnormality includes at least one of software abnormality and hardware abnormality; and determining a corresponding abnormal handling program according to the obtained abnormality and processing the abnormality by the abnormal handling program, wherein the abnormal handling program is independent of the program code snippet. The invention also provides an abnormal handling device under the embedded type C language environment.

Description

technical field [0001] The invention relates to the C language technology, in particular to the exception handling technology under the embedded C language environment. Background technique [0002] An exception is an abnormal condition that occurs when a hardware or software program is running. In the embedded C language environment, the traditional exception handling method is to restart the system when an exception is found. Taking program exceptions as an example, you can check whether an exception occurs when the program is running through the exception identification ability of the CPU. Once the CPU finds that an exception occurs when the program is running, it will call the exception handler, and the exception including the register, current stack, and call stack will be processed. The information is saved and then processed in a uniform manner. That is, for an exception that occurs in a task, the task is suspended in the debug version, and the embedded system is re...

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/36
CPCG06F8/31
Inventor 余加强郑伟
Owner HUAWEI TECH CO LTD
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