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

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: 18 October 2017, 2:05 AM EDT
Location: San Jose, CA, USA
Posts: 10,536
Thanks: 548
Thanked 3,689 Times in 3,147 Posts
Have you tried:

cmp file1 file2

Sponsored Links
Old Unix and Linux 03-11-2013
RudiC RudiC is online now Forum Staff  
Join Date: Jul 2012
Last Activity: 18 October 2017, 4:55 AM EDT
Location: Aachen, Germany
Posts: 11,468
Thanks: 308
Thanked 3,555 Times in 3,272 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 offline
Registered User
Join Date: Nov 2012
Last Activity: 8 September 2017, 10:55 AM EDT
Location: on the road for work; home is private time
Posts: 441
Thanks: 8
Thanked 104 Times in 98 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: 17 October 2017, 10:03 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,610
Thanks: 106
Thanked 1,593 Times in 1,174 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

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 05:02 AM.