logoalt Hacker News

haolezyesterday at 8:05 PM1 replyview on HN

Compilers are deterministic.


Replies

zajio1amyesterday at 8:47 PM

There is no requirement for compilers to be deterministic. The requirement is that a compiler produces something that is valid interpretation of the program according to the language specification, but unspecified details (like specific ordering of instructions in the resulting code) could in principle be chosen nondeterministically and be different in separate executions of the compiler.

show 1 reply