3 ms·
The above assumes that the same C compiler is used everywhere. Say you suspect your gcc to be infected. If a second compiler, say clang, can compile the gcc sou
by jpfr 8y ago
The above assumes that the same C compiler is used everywhere. Say you suspect your gcc to be infected. If a second compiler, say clang, can compile the gcc sources and this gcc then recompiles itself bit-identical to the original, then gcc and clang would both have to be (mutually compatible) infected.
Another way is to bootstrap up to a C compiler from machine-language upwards. So that every "level upgrade" in the bootstrap chain can be verified independently.
http://bootstrappable.org/ http://bootstrappable.org/
Here is one bootstrapping effort:
https://github.com/oriansj/stage0 https://github.com/oriansj/stage0