Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8691173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:04:18+00:00 2026-06-13T00:04:18+00:00

I have a very naive question here, and I would like you to correct

  • 0

I have a very naive question here, and I would like you to correct me on whatever wrong concepts I put out here. The question is as follows:

I have ubuntu installed on my machine, now I write a helloWorld.c program in C language. Now, on the operating system I have a compiler installed, when I execute my helloWorld.c program, the OS schedules the compiler and that basically compiles my code into machine code, which eventually, I execute.

Now my kernel code is written in C, then how does my machine interprets that code? Say my kernel code is helloWorld.c, now would not I require any compiler, to compile this code. Also, if I hardcode a compiler in maybe ROM or something, then what language is it written in? Assembly language?

Let me know if I have made myself clear with the problem.

Thanks.

EDIT: By kernel code I mean, the code for operating system. Operating System code. I guess it is written in C right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:04:19+00:00Added an answer on June 13, 2026 at 12:04 am

    I think the crux of your question is a kind of chicken-n-egg problem for compilers.

    1. C-code requires a compiler to build it.
    2. A C compiler itself is written in C
    3. So how did we build the compiler in the first place?

    Nowadays we have compilers available. So when one develops a newer version of a compiler (say gcc4.7) written in C, then one first uses an older version of the compiler to build it. i.e. gcc4.6(which already exists) will be used to compile the code and generate the latest version i.e. gcc4.7.

    This can be traced all the way back to the first compiler ever which as you rightly mention would have required extensive amount of coding in assembly.

    You might want to take a look at this discussion on the bootstrapping & history of the 1st compiler.


    UPDATE :

    Also a fairly common way to get the “first” OS+compiler running is cross-compilation. Here is a nice description of what all one needs to and how one goes about it. In engineering circles this process is called “porting” an OS to a specific device/architecture.

    Essentially the first bare-bones one needs to have :

    1. kernel
    2. libc
    3. compiler
    4. shell
    5. basic OS utils
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very naive conceptual question here for clarification. In my app I'm
Sorry if the question is very naive. I will have to check the below
I am new to Swing so this might seem like a very naive question.
I have very long integer sequences that look like this (arbitrary length!): 0000000001110002220033333 Now
I have a class library written in .Net that I would like to make
This probably comes across as a very naive question, and I am absolutely assuming
This is a very generic question. I have a hashmap and I want to
My question may sound naive, but really struggling to do a very simple thing.
A naive question: As most developers, I periodically have a need to save data
I'm very new to JavaScript so forgive me if this question is naive/obvious. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.