Binary Comparision | Unix Linux Forums | AIX

  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 Thread    
Thread Tools Search this Thread Display Modes
Old 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 03-11-2013
Don Cragun's Avatar
Don Cragun Don Cragun is online now Forum Staff  
Join Date: Jul 2012
Last Activity: 27 February 2015, 4:06 PM EST
Location: San Jose, CA, USA
Posts: 5,735
Thanks: 234
Thanked 1,904 Times in 1,622 Posts
Have you tried:

cmp file1 file2

Sponsored Links
Old 03-11-2013
RudiC RudiC is offline Forum Advisor  
Registered User
Join Date: Jul 2012
Last Activity: 27 February 2015, 3:04 PM EST
Location: Aachen, Germany
Posts: 5,404
Thanks: 94
Thanked 1,406 Times in 1,324 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 03-12-2013
MichaelFelt MichaelFelt is offline
Registered User
Join Date: Nov 2012
Last Activity: 11 December 2013, 7:33 AM EST
Location: on the road for work; home is private time
Posts: 311
Thanks: 6
Thanked 76 Times in 71 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 03-12-2013
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
Join Date: May 2005
Last Activity: 27 February 2015, 4:29 AM EST
Location: In the leftmost byte of /dev/kmem
Posts: 4,464
Thanks: 50
Thanked 909 Times in 712 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 Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:34 PM
Permission Comparision yanis UNIX for Advanced & Expert Users 1 02-16-2012 09:38 AM
File comparision aaysa123 Shell Programming and Scripting 3 03-19-2010 04:44 AM
while - comparision sharif Shell Programming and Scripting 2 11-01-2007 06:58 AM
SuSE comparision lungs SuSE 8 02-12-2005 01:36 AM

All times are GMT -4. The time now is 05:09 PM.