Can you find out which compiler was used to compile a program?

前端 未结 7 541
迷失自我
迷失自我 2021-02-05 09:45

Given an executable that is compiled from C to run on Solaris, is it possible to determine which compiler was used to compile the associated incomplete executable?

I can

7条回答
  •  死守一世寂寞
    2021-02-05 10:18

    Build small test apps with each compiler you're trying to identify. Then look at the results in a hex editor, and try to find patterns. It might turn out to be really obvious -- for example the "Rich" signatures from Microsoft's linker.

提交回复
热议问题