Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 13-02-2009
Member
 
Join Date: Jan 2009
Posts: 38
How to find the source code of any program?

Hi,
I know that linux is a open source operating system.
I want to know if i can find out the code of a particular program by myself like a media player or a messenger?
I mean how can I see the code on which an exe or any program run.
I am learning C++ & I want to know if this is possible so it will be helpful for me to understand how these programs work?

Regards,
Reply With Quote
  #2  
Old 13-02-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: How to find the source code of any program?

There are programs available called decompilers or disassemblers that attempt to construct source code from an executable. A few things to remember about these are that the code they give you is likely far more cryptic than the original source. One reason is they have to make up names for variables since variables are just memory locations and their original names are not included in an executable. Another thing to consider is that visual basic programs are basically converted to C++ code and then compiled, so a VB decompiler (if such exists) would have to go back two levels which may or may not be feasible.
Reply With Quote
  #3  
Old 13-02-2009
Member
 
Join Date: May 2008
Posts: 63
Re: How to find the source code of any program?

Please have a look at this webpage I hope this helps you!
http://www.sparxsystems.com/uml_tool...ourcecode.html

Regards,
Reply With Quote
  #4  
Old 13-02-2009
Member
 
Join Date: Jun 2008
Posts: 97
Re: How to find the source code of any program?

Hey a google search result page redirected me to this page dont know it will help you or not!
Just have a look
Obtaining a program's source code
Reply With Quote
  #5  
Old 13-02-2009
Member
 
Join Date: Jun 2008
Posts: 144
Re: How to find the source code of any program?

In Ubuntu the easiest way is to use apt-src. Assuming you have source repositories enabled (they are by default, I believe), you just type:

Code:
apt-src install packagename
And the sourcecode for "packagename" will be downloaded and extracted to its own folder in the current directory.

Not everything is written in C, in fact the repos contain stuff written in just about every language out there. The kernel and most of the system software is written in C, if I'm not mistaken.

What kind of software are you wanting to study? System stuff, GUI apps, utilities, services?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to find the source code of any program?"
Thread Thread Starter Forum Replies Last Post
Where can I find Java 1.5 swing (JTabbedPane class) source code Who is it Software Development 5 23-07-2010 03:35 AM
Java program to retrieve html source Aaliya Seth Software Development 5 12-01-2010 11:59 AM
How and where do I find the .Net source file Aienstaien Software Development 3 10-08-2009 03:20 PM
Is there a good Open Source Chat Room program that is running on JAVA? Fernandoa Software Development 3 18-05-2009 05:09 PM
View HTML Source in a VB.net Program Calast Software Development 2 09-04-2009 08:03 AM


All times are GMT +5.5. The time now is 06:20 PM.