next up previous contents
Next: 13.1 Compile-Time Errors Up: The Interactive C Manual Previous: void bit_clear(int loc

13 Error Handling

There are two types of errors that can happen when working with IC : compile-time errors and run-time errors.

Compile-time errors occur during the compilation of the source file. They are indicative of mistakes in the C source code. Typical compile-time errors result from incorrect syntax or mis-matching of data types.

Run-time errors occur while a program is running on the board. They indicate problems with a valid C form when it is running. A simple example would be a divide-by-zero error. Another example might be running out of stack space, if a recursive procedure goes too deep in recursion.

These types of errors are handled differently, as is explained below.

Fred G. Martin
Fri Mar 29 17:44:15 EST 1996