How can I view the C code after compilation in binary code?

后端 未结 5 893
春和景丽
春和景丽 2020-12-10 23:44

The compiler is what takes this code, and translates it into the machine code

How can I see the original C code after compilation in bin

5条回答
  •  天命终不由人
    2020-12-11 00:08

    You can't get back the original C source code from the compiled binary - there are many ways in C of producing the same end result so there isn't a unique source.

    The process is called decompiling

    If I have misunderstood your question and you want to know how to view the assembler that the compiler generates from your C code then that depends on the particular compiler but they can all do it. See How can I see the assembly code that is generated by a gcc (any flavor) compiler for a C/C++ program?

提交回复
热议问题