Prevention is Better Than the Cure: Compiler Run-Time Error Checking
White Paper
ABSTRACT
Compilers are generally thought of as being tools that convert a high level language, like C or C++, into assembler or machine code. Of course, they do perform this function, but have the potential to do much more. Code may be generated by a compiler, or be extracted from its run-time library, which adds to the functionality of the user-written code in order to detect run-time errors and take appropriate action. This is useful in any software development context, but for embedded systems, where a fail-safe error control system is often required, this compiler functionality is essential. This paper reviews a number of the error detecting and trapping techniques that are available and discusses how these techniques are implemented in modern compilers. The availability of such functionality in embedded compilers on the market today is also reviewed.
Related Resources
How to Measure RTOS PerformanceOn-demand Web Seminar 21:55How to Measure RTOS PerformanceThis session takes a look at "typical" reported performance metrics for an RTOS in the embedded industry. It's an attempt to explain what these numbers signify, how they are measured, and why... |
VSIPL++: A high-level programming model for productivity and performanceProgrammers writing high-performance programs face a challenge of writing programs that both perform well on the current hardware and yet will be reusable on future hardware. In this paper, we describe... |
How to Guide: Building a Linux Kernel using the Sourcery CodeBench IDEThis document demonstrates various techniques using the Mentor® Embedded Sourcery™ CodeBench IDE to build a Linux® kernel and kernel modules. This paper also demonstrates how to use Sourcery... |