Re: object code from which compiler
- From: Simon Biber <news@xxxxxxxxx>
- Date: Wed, 31 Aug 2005 02:01:03 +1000
ajm wrote:
Hi All,
given an object file is there any way (or tool) to determine which compiler created it ?
The format of the object file may be different for each implementation or platform. Some do record the compiler name, some don't. One of my object files has the following string embedded, which I extracted with the "strings" and "grep" commands.
$ strings RGBColour.obj | grep compiler
@-compiler:"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\c2.dll"
Just determining the file format may help. Try the "file" command.
$ file devcpp/main.o devcpp/main.o: 80386 COFF executable not stripped - version 30821
$ file linux2/main.o
linux2/main.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
$ file vsnet/main.obj vsnet/main.obj: data
It recognised the Windows and Linux object files produced by GCC, but unfortunately it didn't recognise the VS.NET object file.
-- Simon. .
- Follow-Ups:
- Re: object code from which compiler
- From: Simon Biber
- Re: object code from which compiler
- References:
- object code from which compiler
- From: ajm
- object code from which compiler
- Prev by Date: Re: Where the code trouble is?
- Next by Date: 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
|