Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you find out which compiler was used to compile a program?

Given an executable that is compiled from C to run on Solaris, is it possible to determine which compiler was used to compile the associated incomplete executable?

I can't see anything when using either the strings or the file command, and magic doesn't seem to contain anything specific.

Do compilers generally put a fingerprint in their executable output files?

cheers,

like image 244
Rob Wells Avatar asked Mar 06 '09 11:03

Rob Wells


People also ask

How do I know what compiler I have?

Type “gcc –version” in command prompt to check whether C compiler is installed in your machine.

How do I find the compiler of a .EXE file?

If you can find a way to examine the first dozen or so bytes of the EXE file, in a hex dump with corresponding ASCII characters displayed, they will usually indicate the compiler used.

Which compiler is widely used to compile a program?

The Ada version GNAT is one of the most widely used Ada compilers. GNAT is free but there is also commercial support, for example, AdaCore, was founded in 1994 to provide commercial software solutions for Ada. GNAT Pro includes the GNU GCC based GNAT with a tool suite to provide an integrated development environment.

How compiler program is compiled?

A compiler is an executable program that takes program source code (text) as input and translates it into an executable program (binary machine code) that it writes into a file as output. That executable program can then be run to process input data and generate output according to whatever we wrote our program to do.


1 Answers

Yes IDA is great for this. It uses a technology called FLIRT.

like image 157
Tim Matthews Avatar answered Sep 20 '22 00:09

Tim Matthews