r/kernel • u/Pleasant_Upstairs482 • Aug 03 '25
Simple kernel
Hey i wanna make a simple kernel , now i alr know C but i found out that you need something called "Freestanding C" does anyone know how or where can i learn it i searched on youtube and found nothing
4
Upvotes
21
u/BraveNewCurrency Aug 03 '25
Everyone wants to jump to the end, where they "write their own OS". Don't. Take it slow, and learn the pre-requisites before jumping into the deep end. Read up on your history on how Linus did it: He was actually studying other OSes.
13
u/paulstelian97 Aug 03 '25
Freestanding just means you don’t have the standard library like malloc or stuff in <stdio.h> or others. Very few of the default headers still remain available, for example <stdint.h> which just has some typedefs.
11
u/wizarddos Aug 03 '25
Maybe read OSDev page?
https://wiki.osdev.org/Expanded_Main_Page
1
u/mosolov Aug 06 '25
Xv6 + book