Recent Articles



































Compiler bug



         


Compiler bugs are a particularly insiduous form of computer bug.

A compiler is a computer program that translates a computer program written in one computer language (called the source language) into a program written in another computer language (called the output or the target language).

In the common case, an ordinary computer bug (e.g. division by zero) often manifests itself as a report that a particular error has occurred. Programming errors (e.g. using + instead of -) may merely produce the wrong answer.

In the case of a compiler bug, the result may be to translate the source program incorrectly, so that when you come to run the program you either get wrong answers or some error message which doesn't really relate to your original program.

As well as translating your program, some compilers also attempt to optimize it, so that it will run faster, or use less memory, or both. This optimization is often the most complicated part of a compiler, and hence is likely to have the most bugs.

Examples of compiler bugs:





  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License