Why can't code be uncompiled? - eviltoast

I see a lot about source codes being leaked and I’m wondering how it that you could make something like an exact replica of Super Mario Bros without the source code or how you can’t take the finished product and run it back through the compilation software?

  • orhtej2
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    That’s because most compilers these days optimise the code a lot, hence the final machine code inside the binary does not translate back to original line by line.

    Also a lot of metadata like formatting, variable names and comments is lost as it does not matter for the resulting binary.