Re: How to identify compilers

"Alex K. Angelopoulos" <aka@mvps.org>
21 Feb 2003 01:25:37 -0500

          From comp.compilers

Related articles
How to identify compilers robert.kahlert@aeg-hausgeraete.de (2003-01-30)
Re: How to identify compilers joachim_d@gmx.de (Joachim Durchholz) (2003-02-05)
Re: How to identify compilers chase@theworld.com (David Chase) (2003-02-05)
Re: How to identify compilers raffles2@att.net (Ron Ruble) (2003-02-05)
Re: How to identify compilers jgd@cix.co.uk (2003-02-06)
Re: How to identify compilers vbdis@aol.com (2003-02-06)
Re: How to identify compilers sandfeld@diku.dk (Allan Sandfeld Jensen) (2003-02-11)
Re: How to identify compilers aka@mvps.org (Alex K. Angelopoulos) (2003-02-21)
Re: How to identify compilers cyberguijarro@terra.es (2003-02-24)
| List of all articles for this month |
From: "Alex K. Angelopoulos" <aka@mvps.org>
Newsgroups: comp.compilers
Date: 21 Feb 2003 01:25:37 -0500
Organization: Compilers Central
References: 03-01-184
Keywords: practice
Posted-Date: 21 Feb 2003 01:25:37 EST

"Robert" <robert.kahlert@aeg-hausgeraete.de> wrote in message
> Did anybody know, if (and how) it's possible to find out with which
> compiler a Windows executable file was compiled.


Everyone's mentioned the right way to go about finding this out in
general.


For quick-and-dirty answers, the simple way is to run a dependency
checker such as Dependency Walker (he author, Steve Miller, is a
fairly well known former Microsoft dev - he produced the tool while
there, and keeps a current version of it up at stevemiller.net).


Without being exhaustive, here's what you can tell:


+ If it can't open, it's probably a 16-bit app.


+ It will have explicit dependencies on DLLs - some standard system
files, others very obviously application runtimes. Dependency on
msvbvm60, msvbvm50, or vb40032 DLL will clue you in that it is a VB
app. explicit direct dependency on a common FORTRAN runtime will tell
you its a Fortran app. _Lack_ of the above, combined with a _direct_
msvc* file dependency, will clue you in that it's a C++ app.


Do that a few times, and then you can open an arbitrary binary in a
hex editor, scan a few lines, and come up with a good guess for its
compilation environment.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.