3 ms·
Generally people don't look at the output of the compiler, but the output of the compiled program. This is wrong because you are viewing the task of a compiler
by Locke1689 16y ago
Generally people don't look at the output of the compiler, but the output of the compiled program.
This is wrong because you are viewing the task of a compiler in terms of the result of the compiled program. A compiler is simply a translator from one language to another. The result of the program is the result of an interpreter running the code, not the compiler. Deviation from correct output in the compiled code is not only not allowed, it is deemed a bug in that code.
The unique part of different compilers is not the output of the compiled code they produce but the compiled code itself. All compilers should produce code that produces the same result if they are taking in the same input, by definition.