Re: object code from which compiler



ajm wrote:
>
> Hi All,
>
> given an object file is there any way (or tool) to determine which
> compiler created it ?

No.

While some object file formats may support a method for the compiler to
insert such information, and some compilers creating that file format
may actually insert that information, there is no way in general to get
information about the compiler itself.

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap@xxxxxxxxx>

.



Relevant Pages

  • Re: namespaces and main()
    ... would make the compiler read type information for OtherClass ... >>object file formats used to communicate between compiler and linker ... what does "full static type inf." ... of the AST for the current translation unit, ...
    (comp.lang.cpp)
  • Re: External RAMdisk
    ... battery backed RAM disk. ... I goosed the KayPro II up to 5 MHz, ... People used to tell me that this wasn't much of a test, because all I was measuring was the overhead time of the compiler and other tools. ... To put things in perspective, running this on a VAX 11/780, with BSD Unix, took 20 seconds, and generated a 20k object file. ...
    (comp.os.cpm)
  • Re: What a translation unit is.
    ... >>So therefore it only makes sense to me that the most usefull translation ... > But let's keep assuming the traditional compiler system. ... >>something inbetween states of tranlation then the object file is most ... >>The source file is a unit to be translated. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Help! simple compile question
    ... That would depend on what compiler you use, ... sub1 calls sub2 and sub3. ... and sub3 to end up in the same object file. ... the compiled result from multiple source files in a single file, ...
    (comp.lang.fortran)
  • Re: namespaces and main()
    ... >> an object file for a translation unit which contains enough ... >> information for the linker to check if any exported type information ... You completely ignore that the main use of a header ... if a compiler would produce object ...
    (comp.lang.cpp)