The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch iBot UNIX and Linux RSS News 0 12-19-2007 08:20 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 02:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 03:57 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 08:39 AM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 09:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-2006
Registered User
 

Join Date: Jun 2006
Posts: 1
Stumble this Post!
Decompilers in Unix for C exes

We have a unix based application which was compiled using some old compiler for C. It has got some exes whose source code is not available with us.
We actually need to make the complete application GNU compiled

For some of the exes whose source code is available with us, it no problem.
But the exes whose source code is not available we are facing issues

Kindly let me know if you have any idea about the decompilers in Unix or can it be ported without decompilation
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-28-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,572
Stumble this Post!
If such perfect decompilers are available,

then everything on this world is free.

then there wont be any closed group and contrast to open source community as such

Am not sure of this.

Let us what the Heroes are to say!!!
Reply With Quote
  #3 (permalink)  
Old 06-28-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,844
Stumble this Post!
Most decompliers that kind of work are for Windows 16 bit apps.

Assuming old system is Linux:

objdump is a GNU product that produces assembly from an exe (same platform). gcc can compile assembly. The assembly is basically unreadable

http://boomerang.sourceforge.net produces (most of the time) somewhat readable assembler.

You cannot reverse engineer machine code into readable C code, to my knowledge.

As to porting - what was the old platform, what is the new?
Reply With Quote
  #4 (permalink)  
Old 06-28-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
Stumble this Post!
It's very hard to go back. A lot of information is lost in going from source code to executable -- ALL preprocessor statements, ALL comments, ALL variable names, some function names, any inline functions... not to mention the dirty tricks a compiler does to optimize things.

Not to mention that if a program is closed-source, they've probably got something in the license agreement that forbids this kind of reverse engineering. I'm not sure it's technically legal to forbid that -- imagine being legally disallowed from mending your pants! -- but the courts are so ignorant about technology in general it hardly matters.
Reply With Quote
Google The UNIX and Linux Forums
Reply

« Switch | scope »
Thread Tools
Display Modes




All times are GMT -7. The time now is 11:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0