TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to create an OS from scratch – tutorial

377 pointsby zabanaover 6 years ago

12 comments

justinianover 6 years ago
I&#x27;ve seen a number of &quot;build an OS&quot; tutorials pop up recently, and that&#x27;s awesome! Building an OS will definitely help you understand how to write better user-space programs, and it&#x27;s fun.<p>One thing I wish is that more of them would feature UEFI instead of BIOS, or at least come with a warning, as Intel plans to drop support for legacy BIOS in 2020.<p>Going through UEFI is actually easier anyway, IMHO. ... Maybe I should stop complaining and write that tutorial myself instead. Hmm.
评论 #18035927 未加载
评论 #18036567 未加载
评论 #18036850 未加载
评论 #18036373 未加载
评论 #18036775 未加载
jhinraover 6 years ago
“Once you pass college, excessive theory is worse than no theory because it makes things seem more difficult than they really are.”<p>About every third minute I’ve changed my mind about this quote. I think that means it’s a good quote.
评论 #18038483 未加载
jeffreyrogersover 6 years ago
Writing an OS is a fun exercise and it makes you appreciate all the effort that goes into making something like Linux usable and relatively robust and performant. It&#x27;s also interesting to look at how Linux (or other open source OS) implements some of these features once you&#x27;ve tried implementing them on your own. You&#x27;ll find that much of Linux is understandable once you know what problem the code in question is trying to solve.
carlesfeover 6 years ago
Hi, author here. I’m humbled by the kind words. This is a project I started when I was in between jobs and unfortunately it’s kind of stalled because I had difficulties implementing the file system. Really want to get back to it some time.<p>Anyway, feel free to leave your comments, I appreciate them a lot.
评论 #18041863 未加载
评论 #18042022 未加载
fokkerover 6 years ago
These kinds of posts are the reason I come to HN hoping to find. Amazing work! I&#x27;m going to come back and read some chapters over the weekend.
da_murvelover 6 years ago
I&#x27;m currently traversing through Linux From Scratch, <a href="http:&#x2F;&#x2F;www.linuxfromscratch.org&#x2F;lfs&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.linuxfromscratch.org&#x2F;lfs&#x2F;</a>. Not necessarily because I wanted to build a Linux OS but because it was the best guide I could find. But at a first glance this looks promising to me, so I&#x27;d definitely check it out and try out a few &quot;chapters&quot; when time comes.
deytempoover 6 years ago
I legit thought they wrote an OS in the scratch programming language for a second lol
simula67over 6 years ago
Can anyone recommend good resources on writing a compiler from scratch ?
评论 #18037026 未加载
评论 #18037714 未加载
评论 #18036971 未加载
评论 #18037370 未加载
评论 #18038092 未加载
评论 #18037861 未加载
评论 #18036877 未加载
评论 #18036816 未加载
3rdAccountover 6 years ago
I&#x27;ll be the guy to mention Forth as it is the only system I know of that a single person can fully understand and build up a fully functional and REPL interactive system using just assembly and a microcontroller. Most Forthers are doing embedded work though and don&#x27;t need everything that comes with an OS.
bigmit37over 6 years ago
Does any one have other resources I can look into as well. I’m still a relatively new programmer but I really want to get a deeper understanding of how OSes work. I’m assuming I need to use either C&#x2F;C++ or Rust? I only Python and am currently learning C++.
评论 #18037009 未加载
评论 #18037499 未加载
giancarlostoroover 6 years ago
I&#x27;ve been wanting to do this but with a Pi or any SBC board with Linux from Scratch, but not sure how I would even approach LFS on a Pi.
评论 #18035500 未加载
评论 #18035771 未加载
评论 #18035653 未加载
评论 #18035342 未加载
LaneRendellover 6 years ago
Does anyone else have a good list of similar tutorials? I&#x27;m highly interested in this type of implementation from scratch approach.