 |
12-12-2006, 12:51 PM
|
#1 (permalink)
|
|
The Linux Man !
Join Date: Jan 2006
Location: Nagpur, Maharashtra, India
Posts: 217
|
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!
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
12-12-2006, 01:02 PM
|
#2 (permalink)
|
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,116
|
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
|
|
|
12-12-2006, 01:48 PM
|
#3 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
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
|
|
|
12-12-2006, 02:13 PM
|
#4 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
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
|
|
|
12-12-2006, 04:47 PM
|
#5 (permalink)
|
|
Sup' dude, Sup'
Join Date: Aug 2006
Location: bangalore
Posts: 590
|
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
|
|
|
12-12-2006, 05:20 PM
|
#6 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
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
|
|
|
14-12-2006, 08:53 AM
|
#7 (permalink)
|
|
Sup' dude, Sup'
Join Date: Aug 2006
Location: bangalore
Posts: 590
|
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
|
|
|
15-12-2006, 05:46 PM
|
#8 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
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!
|
|
|
17-12-2006, 11:14 AM
|
#9 (permalink)
|
|
OSS Enthusiast!
Join Date: Sep 2005
Location: Hills of Kumaoun
Posts: 664
|
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???
|
|
|
17-12-2006, 11:17 AM
|
#10 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: What do u exactly mean by source code?
^^
Compression, free compression mostly.
__________________
Harsh J
www.harshj.com
|
|
|
17-12-2006, 04:16 PM
|
#11 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
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
|
|
|
17-12-2006, 05:05 PM
|
#12 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
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
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|