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


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
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.

MKR
Sponsored Links
    #2  
Old 03-11-2013
Don Cragun's Avatar
Don Cragun Don Cragun is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 21 October 2014, 1:47 AM EDT
Location: San Jose, CA, USA
Posts: 4,880
Thanks: 182
Thanked 1,640 Times in 1,391 Posts
Have you tried:

Code:
cmp file1 file2

Sponsored Links
    #3  
Old 03-11-2013
RudiC RudiC is offline Forum Advisor  
Registered User
 
Join Date: Jul 2012
Last Activity: 20 October 2014, 3:48 PM EDT
Location: Aachen, Germany
Posts: 4,397
Thanks: 73
Thanked 1,070 Times in 1,009 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.
    #4  
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:

Code:
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.

and

Code:
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
    #5  
Old 03-12-2013
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 20 October 2014, 9:05 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 4,282
Thanks: 45
Thanked 824 Times in 651 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.

bakunin
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 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 03:04 AM.