←back to thread

766 points bertman | 1 comments | | HN request time: 0.432s | source
Show context
nwellinghoff ◴[] No.43492225[source]
Does anyone have any information as to how they modified their C code such that the complier output was deterministic? I thought one of the hardest problems with a effort like this was writing your C such that the compiler would output everything in the same order (same bytes)? And I am not just talking about time stamps etc.
replies(1): >>43492495 #
1. account42 ◴[] No.43492495[source]
This is something compilers themselves need to guarantee, e.g. GCC has -frandom-seed [0].

[0] https://gcc.gnu.org/onlinedocs/gcc/Developer-Options.html#in...