how to find out the compiler version and OS from binary file


 
Thread Tools Search this Thread
Operating Systems AIX how to find out the compiler version and OS from binary file
# 1  
Old 01-01-2009
how to find out the compiler version and OS from binary file

Command to get the Compiler version(xlc/gcc) from the binary on AIX platform.
I m searching for the Command, to get the Compiler(xlc/gcc) used to build the binary on AIX.

I got two commands used on Linux Platform:

- readelf -a <lib> | grep comment
- hexdump -C -s 0x49e7b -n 1812 <lib>

but they are not working on AIX

Thanks In Advance
# 2  
Old 01-01-2009
You might want to explore the "what" command ("man what") to get the revision information about the program. This probably will not tell you the compiler revision used to compile the program, though - not directly so. It *might* provide you with the information necessary to find out the used compiler maybe based on the library information and some arbitrary guesswork.

As a last-ditch effort you might use "strings program | more" and again use some educated guesses to find it out.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

UNIX utility to find difference in folder, file and contents of file against a base version

Hi, I am trying to find out whether there are any Unix utilities that compares folders, files and contents within the file and provides a comprehensive report. The comparison can be against base version of a folder and file with content. Can you please let me know of such a utility? Thanks,... (6 Replies)
Discussion started by: Sripathi_ks
6 Replies

2. AIX

Checking xlc compiler version

Hi, Below is output of lslpp command. bash-3.00# lslpp -L | grep xlC xlC.aix50.rte 11.1.0.1 C F XL C/C++ Runtime for AIX 5.3 xlC.cpp 9.0.0.0 C F C for AIX Preprocessor xlC.msg.en_US.cpp 9.0.0.0 C F C for AIX... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

3. Programming

Incompatiblity of the code due to CC compiler version mismatch.

Incompatiblity of the code due to CC compiler version mismatch. I have a machine with Machine A-- Operating System:SunOs 5.8 Generic_117350-45 sun4u sparc SUNW,Ultra-80(solaris 5.8) CC Compiler:CC: WorkShop Compilers 4.2 16 Jun 1998 C++ 4.2 patch 104631-07 we have compiled C++... (36 Replies)
Discussion started by: Revathi R
36 Replies

4. Programming

Choose compiler version

Hi, I'm new, here, and I'm searching for a simple solution for a simple problem. I'm working on RedHat 4.4.6-4 through a CentOS Virtual Machine and due to some reasons I must compile my C++ codes with these two different g++ versions: 4.4.6 and 4.2.2. The fact is that I should be able to... (4 Replies)
Discussion started by: Marcuss
4 Replies

5. Shell Programming and Scripting

compiler bash shell to binary

helow all, i need your advice for compiler bash shell to binary i am using shc but my script using function so shc have error like this shc: invalid first line in script: function date2stamp()how can i compile to binary if doesn't have compiler i want encode my script how i can do that???? ... (1 Reply)
Discussion started by: zvtral
1 Replies

6. Programming

Scan binary for Clearcase version number?

Hi, Would anyone know how to detect a Clearcase version number from a binary? I dont have a 1-1 source for the current running prod binary, and I would like to retreive it from Clearcase. I tried the Unix strings command to find anything interesting, but without luck, Thanks (1 Reply)
Discussion started by: shriyer123
1 Replies

7. AIX

install two different compiler version

Hi all. I have a simple question. There's a way to install under AIX system (5.3) two different compiler version, i.e. ibm xlf fortran 11 and 12? Seems that smitty doesn't allows user to change the default installation path; it only allows you to save the replaced files of the superseded... (1 Reply)
Discussion started by: poldo000
1 Replies

8. HP-UX

how can I install aC++ Compiler bundle Evaluation version

according those steps 1. Copy your 26 digit hexadecimal license key in a plain text (ASCII) file. 2. Save the file as aCC.cwd in the following location: /opt/aCC/newconfig/aCC.cwd 3. export the variable ST_CODEWORD to point to the file where the license key is stored. ... (0 Replies)
Discussion started by: alert0919
0 Replies

9. UNIX for Dummies Questions & Answers

What version is the compiler?

Hi ! we have a intel fortran compiler on our computer. How do i find out what version it is ? Thank you, dsmv. (1 Reply)
Discussion started by: dsmv
1 Replies

10. UNIX for Dummies Questions & Answers

gcc compiler version?

How do you determine which version of the GNU gcc compiler is on your system? (1 Reply)
Discussion started by: Ben070371
1 Replies
Login or Register to Ask a Question