LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2012, 11:18 AM   #1
anandg111
Member
 
Registered: Jan 2012
Posts: 56

Rep: Reputation: Disabled
Smile how the operating system compiles c programs at the time of booting.


unix and linux does not makes executable files for all the programs.

it compiles it and executes it whenever required.

at the time of booting the system, how kernel compiles those c programs without "gcc".
 
Old 05-01-2012, 11:22 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
What programs are you referring to?
 
Old 05-01-2012, 11:27 AM   #3
anandg111
Member
 
Registered: Jan 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
i don't know but i came to know that kernel compiles some programs at the time of booting.so my que. is without gcc how the kernel compiles those files ?
 
Old 05-01-2012, 11:41 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
during the boot nothing will be compiled (as far as I know). The already compiled kernel code will be used. Maybe it is another kind of compilation, but would be much better if you can tell us the sources of your information.
 
Old 05-02-2012, 01:10 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
As above, you seem to have misunderstood something you read. Linux does not compile stuff at boot time. Please give us the link where you think you read this.
 
Old 05-02-2012, 11:56 AM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
i think on some distros the initrd.img is unzipped/cpio'd into ram at boot time. maybe that is what they are referring to ?
 
Old 05-03-2012, 01:48 AM   #7
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
what's "cpio"?
 
Old 05-03-2012, 01:58 AM   #8
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
cpio is a tool, see: man cpio
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: When is it time to change your operating system? LXer Syndicated Linux News 0 04-19-2012 05:20 AM
how to install operating system[os]-in all systems at a time connect2janu Linux - Laptop and Netbook 7 02-19-2012 07:07 PM
Checking operating system at run time. sanjeebkdeka AIX 1 05-11-2010 02:57 AM
Operating system time and Date shivanrathore Linux - Newbie 1 04-11-2009 07:34 AM
Is linux a real-time operating system? Marty21 Linux - Kernel 6 02-08-2009 07:48 PM


All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration