Ask coding questions

← Back to all posts
Operating System
MdMahiMahi (0)

What Languages I Need To Create An Operating System??

Comments
hotnewtop
DynamicSquid (4598)

Mainly C and Assembly, but it could also be done in C++. Read this for more info. Hope this helps :)

PattanAhmed (1384)

@MdMahiMahi Hi,
Generally, C is the Programming language most commonly used and recommended for creating an Operating system.

But here are some specific languages used for specific OS's
1. Android = C, C++, Java
2. Berkeley Software Distribution (BSD) = C
3. iOS = C, C++, Objective-C
4. Linux = Many programming languages can be used, especially C.
5. Microsoft Windows = C, C++, and Assembly language
6. Unix = C and Assembly language

The common of most is C and it is what I recommend you.
Start learning a language and Stick to it...

With my best wishes
Hope this helps
Please mark my answer if this helps

CodeLongAndPros (1564)

@PattanAhmed Uh yeah.

“Linux: many languages”
Nodejs kernel, python drivers?

It’s all C, always has been, always will be.

PattanAhmed (1384)

@CodeLongAndPros Yes because of that I recommended him C too.
Thanks!

mwilki7 (1129)

any programming language works, so long as it's turing complete

CodeLongAndPros (1564)

@mwilki7 That’s not true. Can you load a GDT, LDT, IRQ table, and jump to pmode in BF? Or, for that matter, Python?

mwilki7 (1129)

@CodeLongAndPros you can do all that with any turing machine
turing machines can simulate other turing machines

CodeLongAndPros (1564)

@mwilki7 Yeah, but you can't make an operating system for x86 with brainf

CodeLongAndPros (1564)

@mwilki7 there are limitations.
There's one data type in BF, for starters...
You've have to build a turing machine to use it.

CodeLongAndPros (1564)

You’ll need NASM, C, and some sort of shell for anything better than an Apple ][

Coder100 (15375)

C and C++ are low-level enough to accomplish it.
Assembly works too.