LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 10: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, 10:22 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
What programs are you referring to?
 
Old 05-01-2012, 10: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, 10:41 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,769

Rep: Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054
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, 12:10 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,308

Rep: Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744
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, 10:56 AM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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, 12: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, 12:58 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,769

Rep: Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054Reputation: 7054
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 04:20 AM
how to install operating system[os]-in all systems at a time connect2janu Linux - Laptop and Netbook 7 02-19-2012 06:07 PM
Checking operating system at run time. sanjeebkdeka AIX 1 05-11-2010 01:57 AM
Operating system time and Date shivanrathore Linux - Newbie 1 04-11-2009 06:34 AM
Is linux a real-time operating system? Marty21 Linux - Kernel 6 02-08-2009 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 AM.

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
Open Source Consulting | Domain Registration