Ask coding questions

← Back to all posts
How to make an OS
elipie

So I am interested in making my own os, though I cannot figure out how, I currently have two questions, What language should I use for OS development, and any good tutorials that I can read?

I know @CSharpIsGud made a really good os, can you give me some stuff on how you learned that?

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
ItzTezlaCodes
elipie
Comments
hotnewtop
SixBeeps

They actually wrote a guide on making an OS: https://repl.it/talk/learn/A-beginners-guide-to-OS-Dev-Part-1/33328

elipie

@SixBeeps hmm didn't see that thanks

MocaCDeveloper

@SixBeeps

That is a good guide, for setting up the bare minimum of a OS.
There is much much more to an OS than just aligning data sections and compiling.

That guide just explains how to get the basic setup of the OS going.

Also, usually C is also used to develop an OS since it's low-level.
For Example: Linux

RYANTADIPARTHI
elipie

@RYANTADIPARTHI vape god shop...?

RYANTADIPARTHI

@elipie um, what are those?

elipie

@RYANTADIPARTHI that was the site name lel

RYANTADIPARTHI

@elipie oh, well, it's just tutorials. By the way, you do know I'm ryan from the team right?

elipie
RYANTADIPARTHI

@elipie oh, ok.

RayhanADev

@RYANTADIPARTHI hey man, can you at least put some effort into your answers an not just blindly give information to people. One of your links is a Vape tutorial, and I believe you didn’t even look at what information you just took the top links you saw when you googled it. Answering questions on Repl Ask should be about the person not getting cycles.

RYANTADIPARTHI

@RayhanADev sorry, i didn't see that. But i actually put effort you know. I just didn't see that. Sorry again...

OlauPla

Here is a good link to start lerning!
https://www.javatpoint.com/os-tutorial

If this helped plz mark the question as answered

OlauPla

Swift is the best language for os development

MocaCDeveloper

@OlauPla

No, not really. Swift is a language for IOS, not for creating an OS. Apple uses Swift for there applications.

C is usually the better language to use, and most common language to use due to the fact it is low-level

RayhanADev

@MocaCDeveloper what would you compare C to as a language, like what is it most similar to?

elipie

@MocaCDeveloper uh, I believe c is a high level programming language, and so does google

CodeLongAndPros

@OlauPla What rock have you been living under? Apple?

MocaCDeveloper

@RayhanADev

C++ is the next most "similar" language. But there isn't really any language that is "similar" to C. C is kind of a "one of a kind" language.
It's been around forever.

But, if I were to tell you a language that is roughly similar to C, I would say C++.

But most languages supports classes, high-level functionality etc meanwhile C doesn't and C is kind of the main entry point of that.
C++ was even written in C at one point(kind of trans-compiled I guess you could say). So many things(languages) used today kinda originated out of C..
I am getting too much into detail, but the most "similar" langue has to be C++..I don't see any other language being "similar" to C..

MocaCDeveloper

@elipie

C is a middle-level language. It isn't low-level, but it also isn't high level.

You can make the C code you write low level(like writing an OS), or make it mid-level, like opening a file and writing to a file.

But, C is BY FAR not a high-level language. A high-level language is something like Java, Rust, Python etc
C is nothing compared to those languages..not even close

RayhanADev

@MocaCDeveloper huh nice. That’s pretty kewl thanks!

elipie

@MocaCDeveloper I feel like im missing something...? I read a bunch of tutorials and High Level means mostly readable by the computer and low level is more readable by a human

OlauPla

@MocaCDeveloper Oh thanks!

CSharpIsGud

@elipie its the the other way around

MocaCDeveloper

@elipie

Wowah you have things mixed up lmao

elipie

@MocaCDeveloper yeah im so confused are those sites a scam or are they just trying to be smart

MocaCDeveloper

@elipie

High-level languages are usually interpreted(like Python), and easy to read.

Low-level means it is now as readable and is often a bit more difficult to write and understand..
A low level language is something that, for example, requires memory allocation.
A high level language is something that needs no memory allocation, is garbage collected, and often times interpreted.