What do u exactly mean by source code?

Discussion in 'Open Source' started by paragkalra, Dec 12, 2006.

Thread Status:
Not open for further replies.
  1. paragkalra

    paragkalra The Linux Man !

    Joined:
    Jan 6, 2006
    Messages:
    217
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Nagpur, Maharashtra, India
    Hi friends,
    I am back...My xams are finally over....
    Everyone says, Linux gives u source code.......What do u eactly mean by source code.....
    One thing is for sure.......they are not machine readabe files..........so are they *.c or *.cpp files
     
  2. gary4gar

    gary4gar GaurishSharma.com

    Joined:
    May 21, 2005
    Messages:
    4,094
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    Jaipur
    here is what wikipedia says's on this

    http://en.wikipedia.org/wiki/Source_code
     
  3. desertwind

    desertwind New Member

    Joined:
    Nov 2, 2004
    Messages:
    1,096
    Likes Received:
    10
    Trophy Points:
    0
    Location:
    Hyderabad
    If you're mentioning linux kernel source, yes, most of them are .c and .h files.
     
  4. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    Whatever language the apps are programmed in, it's code is given. Like for FC you have srpms they are nothing but source rpm's.
     
  5. ambandla

    ambandla Sup' dude, Sup'

    Joined:
    Aug 11, 2006
    Messages:
    590
    Likes Received:
    4
    Trophy Points:
    0
    Location:
    bangalore
    Yes. Source code is written in C language. Advantages of providing source code:

    1) Customize the entire application: I take the source code, add some more features written by me or remove features that are not necessary.

    2) Build the application for your linux architecture. For instance, application xyz.rpm is not compatible with Redhat Linux 9. What I will do is I will take the source code of the application xyz, compile it, build RPM and install the rpm on my RHL 9 machine.
     
  6. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    Well but if the application is written in a different language then it's source will be given in that language.
     
  7. ambandla

    ambandla Sup' dude, Sup'

    Joined:
    Aug 11, 2006
    Messages:
    590
    Likes Received:
    4
    Trophy Points:
    0
    Location:
    bangalore
    yes. If the application is written in any other language, it is necessary that the compiler for that language is installed.
     
  8. mediator

    mediator New Member

    Joined:
    Mar 18, 2005
    Messages:
    2,491
    Likes Received:
    16
    Trophy Points:
    0
    Location:
    In ur Evil Mind!
    They r in human readable format. i.e mostly in high level programming languages.
     
  9. nitish_mythology

    nitish_mythology OSS Enthusiast!

    Joined:
    Sep 9, 2005
    Messages:
    664
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Hills of Kumaoun
    Why are source code provided in tar files?
    Is it jst fr compression or there is any other reason too?
     
  10. QwertyManiac

    QwertyManiac Commander in Chief

    Joined:
    Jul 17, 2005
    Messages:
    6,656
    Likes Received:
    10
    Trophy Points:
    0
    ^^
    Compression, free compression mostly.
     
  11. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    tar isn't a compression it's for archiving. gzip and bunzip2 are the commonly used for compression. The source code we are talking about here is what you normally get in a .tar.gz or .tar.bz2 file. gz or bz2 are used to reduce the download size and tar is used cos there are a lot of files so archiving them is a good idea. This is what I understand. I maybe wrong in one or two points.
    The code you see in these archives is in whatever language the application was written in.
     
  12. desertwind

    desertwind New Member

    Joined:
    Nov 2, 2004
    Messages:
    1,096
    Likes Received:
    10
    Trophy Points:
    0
    Location:
    Hyderabad
    @mehul. You're right. tar is an archiving utility. gzip or bzip is compression utility. What ppl will usually does is they tar (archive) all the files, the gzip or bzip (compress) the archive. So the usual extension for an compressed archive will be .tar.gz or .tar.bz2.

    PS: In terms of compression ratio bzip is much better than gzip.
     
Thread Status:
Not open for further replies.

Share This Page