Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-12-2006, 12:51 PM   #1 (permalink)
The Linux Man !
 
paragkalra's Avatar
 
Join Date: Jan 2006
Location: Nagpur, Maharashtra, India
Posts: 217
Cool What do u exactly mean by source code?


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
__________________
Parag.A.Kalra, The Linux Man
http://www.paragkalra.com/
In this world without WALLS and GATES who need WINDOWS! USE LINUX! STOP PIRACY! GO OPEN SOURCE!
paragkalra is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-12-2006, 01:02 PM   #2 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: What do u exactly mean by source code?

here is what wikipedia says's on this

Quote:
Source code (commonly just source or code) is any series of statements written in some human-readable computer programming language.
http://en.wikipedia.org/wiki/Source_code
gary4gar is offline  
Old 12-12-2006, 01:48 PM   #3 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: What do u exactly mean by source code?

If you're mentioning linux kernel source, yes, most of them are .c and .h files.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 12-12-2006, 02:13 PM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: What do u exactly mean by source code?

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.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 12-12-2006, 04:47 PM   #5 (permalink)
Sup' dude, Sup'
 
Join Date: Aug 2006
Location: bangalore
Posts: 590
Default Re: What do u exactly mean by source code?

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.
__________________
Introducing Windows Vista 2.0. Check it out at http://www.apple.com/macosx/leopard/index.html
ambandla is offline  
Old 12-12-2006, 05:20 PM   #6 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: What do u exactly mean by source code?

Well but if the application is written in a different language then it's source will be given in that language.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 14-12-2006, 08:53 AM   #7 (permalink)
Sup' dude, Sup'
 
Join Date: Aug 2006
Location: bangalore
Posts: 590
Default Re: What do u exactly mean by source code?

yes. If the application is written in any other language, it is necessary that the compiler for that language is installed.
__________________
Introducing Windows Vista 2.0. Check it out at http://www.apple.com/macosx/leopard/index.html
ambandla is offline  
Old 15-12-2006, 05:46 PM   #8 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: What do u exactly mean by source code?

Quote:
Originally Posted by paragkalra
One thing is for sure.......they are not machine readabe files
They r in human readable format. i.e mostly in high level programming languages.
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 17-12-2006, 11:14 AM   #9 (permalink)
OSS Enthusiast!
 
nitish_mythology's Avatar
 
Join Date: Sep 2005
Location: Hills of Kumaoun
Posts: 664
Default Re: What do u exactly mean by source code?

Why are source code provided in tar files?
Is it jst fr compression or there is any other reason too?
__________________
Do you know, Shinigamis only eat apples???
nitish_mythology is offline  
Old 17-12-2006, 11:17 AM   #10 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: What do u exactly mean by source code?

^^
Compression, free compression mostly.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 17-12-2006, 04:16 PM   #11 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: What do u exactly mean by source code?

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.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 17-12-2006, 05:05 PM   #12 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: What do u exactly mean by source code?

@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.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by clmlbx
- by icebags

Advertisement




All times are GMT +5.5. The time now is 10:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2