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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:21:40+00:00 2026-05-11T09:21:40+00:00

Can a whole operating system be written without using even one line of C/C++

  • 0

Can a whole operating system be written without using even one line of C/C++ code?

EDIT: One more to add to the list – assembly

  • 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. 2026-05-11T09:21:41+00:00Added an answer on May 11, 2026 at 9:21 am

    Yes and no.

    First of all, it’s important to remember that whatever your language of choices, in the end the compiled product is in assembly language (or more accurately, machine code). Even interpreters (such as the cpython interpreter) are ultimately translating your scripts into machine code.

    But that’s probably being overly technical and missing the heart of your question:

    ‘Can I write an operating system in a higher-level language?’

    The answers to this are both personal and technical.

    First, the personal side: if don’t already know how to write an operating system in a mix of assembly language and C then you have absolutely no business trying your hand at OS design.

    Often those new to programming have these sorts of questions because they want to do something as cool as writing a new OS without all the learning required to even attempt such a project. They wonder if higher-level languages can be a way to bypass all that messy study.

    So if, in your heart-of-hearts, this is what you’re after, stop now. Stop, stop, stop. Becoming good at something is hard work. There are no shortcuts. Be ready to roll up your sleeves and get some carpal tunnel syndrome.

    That doesn’t preclude following a path to eventual OS design! If that’s your passion, then start at the top and work your way down. Get books on networking protocols, memory management, threading, etc, tackle each major subsystem and get to know it well. You can’t write a new one if you can’t use an old one!

    Then read books on operating system design and implementation until you dream about process management methodologies.

    Just bear in mind, the amount of knowledge necessary (not just of computer operations but of social constructs like APIs) is immense. This is a long journey and a rewarding one. If you truly love this craft like I do, you’ll be glad you took the time even if you never actually write an OS.

    Now, the technical answer. You’re going to need a bootloader, and that must be written in assembly language. After all, your processor doesn’t know C#. Past the bootloader phase, you can write your OS code in any language you want and it’ll run, assuming your language can compile to machine code binaries (and not bytecode!)

    However, even in our current ‘glut of cycles’ computing environment, an OS must be lean and efficient and that’s nearly impossible to achieve in a higher level language, even more so in an interpreted language.

    Chances are, you’ll need to write your own compiler/interpreter of that given language as a core component of your OS. That core compiler would likely allow only a restricted subset of the language (and you’d bootstrap by writing a more robust compiler in the restricted sub-language). Otherwise the performance will be abysmal.

    But all of this is horribly complex and a real discussion of the issues requires a depth of knowledge you probably currently lack. But if you have the drive to do so, you can easily change that, and then I’d happily debate approaches all day!

    If it makes you feel any better, I do know enough to write an operating system, and still I sit around daydreaming, trying to figure out how much of an OS could I get away with writing in python. 😉

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

Sidebar

Related Questions

I am using windbg with xp embedded. Attempting to fetch the operating system symbols
I want to perform a system-wide hook (using SetWindowHook) on a 64bit operating system.
How can I make a variable (object) available for the whole lifetime of the
I need a regular expression pattern to only accept positive whole numbers. It can
After using them a while I can't help but feel that the hoops you're
How can I initialize a list containing generic objects whose types can be different?
Can source code examples be kept in a SQL database while retaining all formatting
I'm using the System.Drawing classes to generate thumbnails and watermarked images from user-uploaded photos.
The Windows NT operating system has the EnterCriticalSection and ExitCriticalSection objects to allow for
Can i get the source code for a WAMP stack installer somewhere? Any help

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.