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 7820869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:27:33+00:00 2026-06-02T07:27:33+00:00

I never did kernel programming. I am a good programmer in the Java language

  • 0

I never did kernel programming. I am a good programmer in the Java language and frequently use it. Now i feel to do something interesting with kernels. A kernel resides between hardware and OS. It communicates with hardware using system calls. Every programming language require a compiler to compile the code written in high level language and then it generate low level code, which is generally assembly language code. Here comes my doubt, if we have kernel written in C, then should we have a C compiler installed on the machine? At the end, when kernel interacts with hardware it uses assembly language, can i create kernel in Java language? If yes, then what are the requirements for the same? Thank you.

  • 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-02T07:27:34+00:00Added an answer on June 2, 2026 at 7:27 am

    A kernel resides between hardware and OS

    Usually, the kernel is considered to be part of the operating system.

    It communicates with hardware using system calls

    System calls are the interface that is provided by the OS to user applications. The operating system communicates with the hardware through other mechanisms (for example interrupts or memory-mapped registers).

    Every programming language require a compiler to compile the code written in high level language and then it generate low level code, which is generally assembly language code.

    The compiler output is typically either native machine code or a language-specific bytecode (like in the case of Java). Sometimes, compilers also target another programming language such as C or Javascript (transpilation).

    Here comes my doubt, if we have kernel written in C, then should we have a C compiler installed on the machine?

    That’s not necessary. The C compiler produces output that can execute directly on the hardware without interpretation.

    At the end, when kernel interacts with hardware it uses assembly language

    The CPU doesn’t understand assembly. It understands machine code.

    can i create kernel in Java language?

    It has been done.

    If yes, then what are the requirements for the same?

    If you want to write a kernel in Java, then you either have to

    • compile your entire Java codebase to machine code
    • get yourself a CPU that can execute Java bytecode
    • find or build a Java VM and runtime that can run on bare metal and run your Java code in it (if you do it cleverly, you can write much of the runtime and maybe also parts of the VM in Java itself).

    Now to the unspoken, almost rhethorical question:

    Is this a good idea?

    Probably not. Why? First of all, because it would take ages to set up. Second, because you couldn’t just code the way you develop an average business application. You’d have to think about performance of very time-critical code (e.g. context switching, which often requires hand-tuned assembly to be fast enough), manual memory management (as in: your MRU might expect you to give it the physical address where the page table lies), system-/hardware-specific mechanisms (how to access a XYZ controller on this particular architecture?), …

    So you would lose many of the advantages that Java has over a low-level language like C in the first place.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I never did any serious Java coding before, but I learned the syntax, libraries,
I'm reviewing some code, and saw something I have never seen before. I did
i never use any payment gateway still now....but now i need to integrate paypal
So I've never done any assembly programming (although I did some reading/reasoning out the
Which family should I start to learn? (Never did any programming on microcontroller)
I never did Console programming so got stuck in this silly thing: Console.Write(Enter customer's
Never did any kind of embedded or hardware programming, I mainly deal with web
I have to create a fb application, I never did one before but I
what do you prefer for testing JavaScript apps using Cucumber? I never did it
I never did proper class design, so bear with me. Let's say we have

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.