A LEVEL COMPUTING
Translators Compilers
Theory
(This is the older material - click here - for current specification content)
5. Features of a compiler (2)
Error checking is not perfect.
A good compiler will try and spot errors in the source code, but often it will report errors that are not really there. These are called 'spurious errors'.
This happens because the compiler has to make assumptions about the rest of the code after detecting an intial error. Because of the assumptions, one real error might cause a whole cascade of other spurious error messages to appear in the report.
Challenge see if you can find out one extra fact on this topic that we haven't already told you
Click on this link: Compiler spurious errors
One of the skills of a programmer is to interpet the compiler error report to spot the real errors.
Copyright © www.teach-ict.com