|
Authored by: Anonymous on Tuesday, January 22 2013 @ 09:04 AM EST |
Compiler code goes way beyond my knowledge, but if you use different compilers
for the same source (assuming both are legit) wouldn't you get differences
anyway ?
I have an old commercial compiler which compares itself to a competator claiming
to generate smaller and faster code.
Or does that go out the door when switching off all optimisations ?
As in sort of base compilation ?
But then what if you need optimisation ?
Compile unoptim. compiler and then the "payload code" ?
[ Reply to This | Parent | # ]
|
|
Authored by: Anonymous on Tuesday, January 22 2013 @ 09:19 AM EST |
That doesn't actually solve the problem.
It just says "If you can bootstrap yourself to a trusted compiler, you can
use that to check if you trust your other compiler"
But if you *have* a trusted compiler, just recompile the more efficient one with
it after checking its source code and throw away the one you don't trust!
The problem is how do you get to that trusted compiler in the first place?
The only solutions I can see are: Doing a manual compile of a minimum OS and
compiler, building something to put that on a disc yourself, and using that to
bootstrap everything else; or building something to read data off a disc,
getting a trusted listing of the compiler code with it, and doing a full manual
walkthrough of it.
Note that both of these require you to do the checking in your head, as if you
had any computers/compilers you could trust (Like DDC assumes), you'd be using
them to bootstrap the trust chain instead of worrying about it.
The minimal OS you want to look at for a starting point is probably a Gentoo
stage one install environment or similar.
Gentoo Stage one link: http://www.gentoo.org/doc/en/faq.xml#stage12[ Reply to This | Parent | # ]
|
|
|
|
|