Re: object code from which compiler
- From: mwojcik@xxxxxxxxxxx (Michael Wojcik)
- Date: 30 Aug 2005 18:59:45 GMT
In article <1125393744.976811.222620@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, "ajm" <a_j_moran@xxxxxxxxxxx> writes:
>
> given an object file is there any way (or tool) to determine which
> compiler created it ?
There is no standard mechanism for doing so; the standard does not
even require that there be an "object file", though it does discuss
the result of translation, which is probably close enough. (There
are implementations which do not treat the result of translation as
a file of "object code", exactly, but close enough.)
[OT] In general, there's no way to do this. Some implementations may
include identifying information in their output, but no doubt there
are others which do not. You could analyze sample outputs of various
implementations and devise heuristics to guess which implementation
produced which output, but you'd never have anything better than a
heuristic solution, and I suspect it wouldn't be terribly accurate in
the general case.
--
Michael Wojcik michael.wojcik@xxxxxxxxxxxxxx
Sure we're tossing out fluff, but tell me, where does anyone deal in words
with substance? -- Haruki Murakami (trans Alfred Birnbaum)
.
- Follow-Ups:
- Re: object code from which compiler
- From: ajm
- Re: object code from which compiler
- References:
- object code from which compiler
- From: ajm
- object code from which compiler
- Prev by Date: Re: Why C/C++ errors are SO obscure/devious??
- Next by Date: Re: Why C/C++ errors are SO obscure/devious??
- Previous by thread: Re: object code from which compiler
- Next by thread: Re: object code from which compiler
- Index(es):
Relevant Pages
|