Re:Asmttpd – Web server for Linux written in amd64 assembly
by bjourne on Thursday May 21, 2015 @04:46AM
(#9581601)
You are missing that there exists many more than one literal translation for a particular C program to asm. Using your logic a compiler could not produce a literal translation of any program unless its output to 100% matched that of all other compiles for the same program.
Take a simple problem like the FizzBuzz problem, write it as the simple obvious branching style. Now compile it with GCC or Clang (with -O3) and you end up with lookup table (or at least I did a few months back. Semantically equivalent but not literal "word for word" translation.
[0] http://www.thefreedictionary.com/literal