DCPUTeam / DCPUToolchain

[ARCHIVED] The code repository for the DCPU-16 Toolchain.
http://dcputoolcha.in/
MIT License
97 stars 14 forks source link

Stdout, Stderr seem reversed (Windows) #90

Closed kierenj closed 12 years ago

kierenj commented 12 years ago

When reading from stderr, I get the generic message "An error occurred while compiling" (or similar). It's stdout that has the actual error message. I think that should be the other way around, but am not sure what the standard convention is, if any?

hach-que commented 12 years ago

In that case they should both be on stderr.

The convention is that all output, error or otherwise, is outputted to stderr. The reason for this is that when the output from the assembler or compiler is piped (stdin / stdout), you need to ensure that it doesn't get interfered with.