Though exception handling is crucial for enhancing the reliability of embedded systems,the traditional exception handling methods for hardware are difficult to adapt the development of embedded systems.In this paper,the exception handling requirements of embedded systems was analyzed,and a structural exception handling framework was proposed,in which some new features were introduced.Then taking the case of CGEL,the concrete realization and applying of this exception handling framework for embedded system was described.Comparison results with other exception handling methods show that the exception handling framework has perfect functions and rich interface,and the principle of escalation can help embedded systems to deal with various types of anomalies from multiple aspects.%异常处理对于提升嵌入式系统可靠性至关重要,而传统面向硬件的异常处理方法难以适应当前嵌入式应用的发展.通过分析嵌入式系统新的异常处理需求,提出一种结构化异常处理框架,在传统的异常处理机制基础上引入了新的功能特性,并以电信级嵌入式Linux为原型,描述了该框架的具体实现及应用.与其他主流异常处理机制的对比结果表明,异常处理框架功能完善,接口丰富,多级异常处理流程为系统解决各类异常提供多层面的支持.
展开▼