如何查找任何可执行文件的编译器? [英] How to find compiler of any executable file?

查看:112
本文介绍了如何查找任何可执行文件的编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何工具可以在Windows中找到软件编译器?

Is there any tool to find a software compiler in windows?

推荐答案

一般情况下,原则上这是不可能的。有些编译器确实在生成的文件中留下了签名,但这不是必需的,所以你不知道使用了什么编译器。



顺便说一下,通常是通过使用编译器生成目标文件来创建本机可执行文件,并通过另一个名为 linker 的程序将它们与适当的地址转换和调用解析放在一起。根据技术,这些程序有许多不同的变体,具有不同的步骤。但重点是:可执行文件可能不是由一个编译器创建的,而是由两个或多个不同的编译器创建的,然后是链接器或类似工具。这样,你不仅找不到编译器,而且问题本身没有意义,因为不必使用一个编译器创建可执行文件。



-SA
In general case, this is impossible in principle. Some compilers really leave a "signature" in the generated file, but this is not required, so you cannot know what compiler was used.

By the way, usually a native executable file is created by using a compiler to generate object files, and they are put together, with appropriate address translation and resolution of the calls, by another program called linker. There are many different variants of these procedures with different steps, depending on technology. But the point is: the executable file might be created not by one compiler, but by two or more different compilers, and then a linker or a similar tool. This way, not only you cannot find out a compiler, but the question itself does not make sense, as an executable file does not have to be created using just one compiler.

—SA


这篇关于如何查找任何可执行文件的编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆