Unix/Linux Go Back    

AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Binary Comparision


aix, unix

Closed Linux or Unix Question    
Thread Tools Search this Thread Display Modes
Old Unix and Linux 03-11-2013
MKR MKR is offline
Registered User
Join Date: Dec 2012
Last Activity: 6 July 2013, 12:22 AM EDT
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Binary Comparision

Hi Folks,

Is there any way to compare the binaries which are built in AIX (5.3.0) environment?

Thanks in advance.

Sponsored Links
Old Unix and Linux 03-11-2013
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Join Date: Jul 2012
Last Activity: 9 October 2015, 3:49 AM EDT
Location: San Jose, CA, USA
Posts: 7,316
Thanks: 309
Thanked 2,413 Times in 2,073 Posts
Have you tried:

cmp file1 file2

Sponsored Links
Old Unix and Linux 03-11-2013
RudiC RudiC is online now Forum Advisor  
Registered User
Join Date: Jul 2012
Last Activity: 9 October 2015, 7:57 AM EDT
Location: Aachen, Germany
Posts: 6,889
Thanks: 116
Thanked 1,899 Times in 1,781 Posts
On top of Don's suggestion, you may want to consider one of the various hex or octal dump commands (hexdump, od) to convert the binaries and then compare those dumps.
Old Unix and Linux 03-12-2013
MichaelFelt MichaelFelt is online now
Registered User
Join Date: Nov 2012
Last Activity: 9 October 2015, 8:12 AM EDT
Location: on the road for work; home is private time
Posts: 359
Thanks: 6
Thanked 87 Times in 82 Posts
I am not sure why you would want to compare two binaries specifically. Generally, they just run. The complete story from IBM marketing pages

Core snips:

AIX 7 is designed so that applications created on AIX 6 and AIX 5L can  be executed on AIX V7 without
recompilation. AIX 7 is planned to support  POWER7™, POWER6™, POWER5™, POWER4™,
and PPC970 processor systems that  implement the Power Architecture platform reference architecture.


Restrictions on binary compatibility
As stated earlier, binary compatibility on any platform requires that application use only portable
programming techniques such as only using  published interfaces and avoiding programming techniques
that are  processor or AIX release specific.
AIX does not support the execution of binaries created on later  releases or technology levels of AIX
on an earlier release or technology  level of AIX. For example, execution of binaries created on the
AIX  V7.1 operating system (OS) would not be supported on a system running  AIX V6.1 OS.

Simply put - applications that use shared libraries for system calls AND are compiled at same or older/previous level of AIX are expected to run as is.
Note: for optimal performance recompiling can (read will) make a difference for CPU intensive applications.
Sponsored Links
Old Unix and Linux 03-12-2013
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
Join Date: May 2005
Last Activity: 9 October 2015, 2:35 AM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 4,718
Thanks: 62
Thanked 1,060 Times in 821 Posts
Depending on what you are interested in there is also the following commands:

dump displays the content of a binary (loader section, strings, object file header, ....)

what display version information

dbx IBMs debugger

kdb kernel debugger, also used to analyse system dumps

I hope this helps.

Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Convert binary file to csv and then back to the binary format digidax Shell Programming and Scripting 7 12-27-2012 12:34 PM
Permission Comparision yanis UNIX for Advanced & Expert Users 1 02-16-2012 08:38 AM
File comparision aaysa123 Shell Programming and Scripting 3 03-19-2010 03:44 AM
while - comparision sharif Shell Programming and Scripting 2 11-01-2007 05:58 AM
SuSE comparision lungs SuSE 8 02-12-2005 12:36 AM

All times are GMT -4. The time now is 08:12 AM.