Results 1 to 5 of 5

Thread: How to find the source code of any program?

  1. #1
    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,

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    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.

  3. #3
    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,

  4. #4
    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

  5. #5
    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?

Similar Threads

  1. Where can I find Java 1.5 swing (JTabbedPane class) source code
    By Who is it in forum Software Development
    Replies: 5
    Last Post: 23-07-2010, 03:35 AM
  2. Java program to retrieve html source
    By Aaliya Seth in forum Software Development
    Replies: 5
    Last Post: 12-01-2010, 11:59 AM
  3. How and where do I find the .Net source file
    By Aienstaien in forum Software Development
    Replies: 3
    Last Post: 10-08-2009, 03:20 PM
  4. Replies: 3
    Last Post: 18-05-2009, 05:09 PM
  5. View HTML Source in a VB.net Program
    By Calast in forum Software Development
    Replies: 2
    Last Post: 09-04-2009, 08:03 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,573,547.74154 seconds with 17 queries