-2

I want to ask a question that how can i simply check that a program compiled in which language. I tried "PEiD" but didnt worked for me anymore. It dont work on some program compiled it says that no not detected so is there anything else that i can check programming language with it.Thanks.

Ahmed Raza
  • 40
  • 1
  • 10

1 Answers1

1

This is not reliable in any way, but you can distinguish between C and C++ when you are able to decode mangled function names.

To give an example, on Linux systems,

objdump -CT /usr/lib/x86_64-linux-gnu/libxml2.so | less
objdump -CT /usr/lib/x86_64-linux-gnu/libQtCore.so | less

will tell you that all functions in libxml2 have string-based names, while libQtCore uses namespaces and operator overloads. Since the latter features do not exist in C, you can rule out C as a source language for libQtCore. Admittedly, this approach is very limited and you get few definite answers.

Community
  • 1
  • 1
SpamBot
  • 1,388
  • 10
  • 26
  • actually i m working on visual studio on windows , i m not related C++ but i have a tool that compiled in any language, so i want to check if that software/tool compiled in which language ? – Ahmed Raza Aug 03 '16 at 06:54