mit-pdos/xv6-public
View on GitHub ↗ ★ 9,717 C
xv6 OS
33 mentions on Hacker News by 24 people: 1 story, 32 comments · first 2015-11-16 · latest 2025-03-22
20082026
-
Real world OS is without no doubt complicated. But for beginner, I think xv6 is sufficient: https://github.com/mit-pdos/xv6-public A rather small codebase, pretty well documented, easily buildable without building your own custom GCC,…
comment by anta40 · 2025-03-22 · in The little book about OS development -
I still stick with xv6: https://github.com/mit-pdos/xv6-public - It's not only a kernel, but also have user space - Code is pretty compact and well documented, in general can be understood in a few days - No need to spend hours to custom…
comment by anta40 · 2024-12-10 · in BareMetal OS -
…operating systems. I recommend starting with smaller, simpler systems, such as MINIX and xv6 ( https://github.com/mit-pdos/xv6-public ), before moving on to larger, more complex systems such as the Linux kernel ( https://kernel.org/ ) and…
comment by linguae · 2024-06-06 · in Thinking about building a operating system -
…file system, etc) on Github. I still tinker with the x86 version (which isn't maintained anymore): https://github.com/mit-pdos/xv6-public . Doesn't need much effort to build it on macOS. The codebase is pretty compact that it can be…
comment by anta40 · 2024-01-13 · in A first dip into OS kernel development with xv6 and the 6.1810 labs -
…eventually we'll ask "how such things are done behind the scene?" That's why I tinker with xv6 ( https://github.com/mit-pdos/xv6-public ) during sparetime. Learning various process scheduling algorithms from textbook is a thing.…
comment by anta40 · 2023-12-26 · in Challenging projects every programmer should try (2019) -
https://github.com/mit-pdos/xv6-public has under 10,000 lines of C and assembly including some user space programs.
comment by cb321 · 2023-09-11 · in How could the early Unix OS comprise so few lines of code? -
…was originally written for 32-bit x86; the RISC-V port is a relatively recent development. See e.g. https://github.com/mit-pdos/xv6-public for some of the earlier history. rxv64 was written for a specific purpose: we had to ramp up…
comment by cross · 2023-09-09 · in The rxv64 Operating System: MIT's xv6, in Rust, for SMP x86_64 machines -
Hmm no idea. I only build 1 OS on my Mac: https://github.com/mit-pdos/xv6-public . It obviously won't compile with Apple's gcc (which actually is a clang wrapper), so have to install another compiler (i386-elf-gcc). But on my Debian box,…
comment by anta40 · 2023-06-30 · in x86-64 Operating System to Play 2048 -
…server ("pools") and Postgres database ("memory contexts"). I also just looked at these codebases: https://github.com/mit-pdos/xv6-public (based on code from the 70's) https://github.com/id-Software/DOOM (1997) I looked at allocproc() in…
comment by chubot · 2023-06-22 · in Some were meant for C [pdf] (2017) -
…the soft CPU I imagine. Some good info about IO ports in the answers to this[4] SO question. [1]: https://github.com/mit-pdos/xv6-public/blob/eeb7b415dbcb12cc... [2]: https://github.com/mit-pdos/xv6-public/blob/eeb7b415dbcb12cc... [3]:…
comment by magicalhippo · 2022-11-27 · in Running a Unix-like OS on a home-built CPU with a home-built C compiler (2020) -
I wonder, how hard it would be to write something like xv6: https://github.com/mit-pdos/xv6-public But in Lisp/Scheme? Preferrably no C. Just Lisp/Scheme and assembly.
comment by anta40 · 2022-10-26 · in Between Two Lisps (2020) -
I checked. It's definitely a fork. Eg, compare https://github.com/NewbiZ/xv6/blob/master/fs/fs.c to https://github.com/mit-pdos/xv6-public/blob/master/fs.c . I didn't find a mention of the original copyright.
comment by eesmith · 2022-08-02 · in Xv6, a simple Unix-like teaching operating system -
…Nowadays I might point at MIT's xv6, which implements a very similar simple unix filesystem: https://github.com/mit-pdos/xv6-public/blob/master/fs.c
comment by loeg · 2020-05-12 · in RISC-V OS using Rust: Filesystems -
…] by the only person with a genuine claim to being able to write safe C & company. * https://github.com/mit-pdos/xv6-public & * https://github.com/mit-pdos/xv6-riscv UNIX v6 clone in ANSI C by influential Plan 9-era Bell Laboratories…
comment by kick · 2020-03-08 · in Ask HN: How do I learn C properly? -
…(used as a teaching OS at MIT) is ~10kloc of C for the kernel and a handful of userland programs: https://github.com/mit-pdos/xv6-public More information, docs, etc: https://pdos.csail.mit.edu/6.828/2014/xv6.html A few years back I did a…
comment by swetland · 2019-09-22 · in Nanix: An idea for a modern, small, Unix-like operating system -
…[2] MIT's xv6 OS [3] [1] http://pages.cs.wisc.edu/~remzi/OSTEP/ [2] https://xinu.cs.purdue.edu/ [3] https://github.com/mit-pdos/xv6-public
comment by molteanu · 2019-08-27 · in Ask HN: Recommended resources to learn the Linux kernel and OS theory? -
…- educational version of unix - useful. Here is their implementation of cat, all 44 lines of it: https://github.com/mit-pdos/xv6-public/blob/master/cat.c
comment by zyztem · 2019-07-02 · in Decoded: GNU Coreutils -
Counterexamples: Optimization: https://github.com/mit-pdos/xv6-public/pull/24/files Improvement in build system: https://github.com/mit-pdos/xv6-public/pull/33 Bugfix in build system: https://github.com/mit-pdos/xv6-public/pull/34/files…
comment by wolfgke · 2018-07-24 · in Xv6, a simple Unix-like teaching operating system -
For https://github.com/mit-pdos/xv6-public/commit/6389d9d4103eae... Seems fine. It’s hardly worth noting. May as well write “Minor” and use your time more efficiently.
comment by shawn · 2018-07-24 · in Xv6, a simple Unix-like teaching operating system -
…I am immediately underwhelmed by the commit messages. "nothing much," "nits," "nit". Really? [1] https://github.com/mit-pdos/xv6-public
comment by fernly · 2018-07-24 · in Xv6, a simple Unix-like teaching operating system -
What a pity that lots of people seem to want to create (often small) enhancements to xv6 > https://github.com/mit-pdos/xv6-public/pulls but the authors (probably because of lack of time and/or academic obligations) seem to ignore them.
comment by wolfgke · 2018-07-23 · in Xv6, a simple Unix-like teaching operating system -
https://github.com/mit-pdos/xv6-public
comment by brkc · 2017-10-06 · in Ken Thompson quotes -
…of the page) Review by John Regehr: http://blog.regehr.org/archives/1114 (Github Repositories: > https://github.com/mit-pdos/xv6-public > https://github.com/mit-pdos/xv6-book ).
comment by wolfgke · 2017-02-02 · in Think OS: A Brief Introduction to Operating Systems -
…but since it is designed as a teaching OS, my guess is that it should be a good entry point. https://github.com/mit-pdos/xv6-public/blob/master/fs.c
comment by wkz · 2017-01-20 · in Ask HN: Recommended guides for learning filesystems? -
I highly recommend checking out https://github.com/mit-pdos/xv6-public/
comment by steveklabnik · 2017-01-16 · in An Explainer on Unix’s Most Notorious Code Comment -
xv6! https://pdos.csail.mit.edu/6.828/2014/xv6/book-rev8.pdf https://github.com/mit-pdos/xv6-public
comment by latenightcoding · 2016-12-26 · in Ask HN: What do you want to learn in 2017? -
…an expert in x86 so I'm not sure... only read some of Intel's manual but judging by the code at https://github.com/mit-pdos/xv6-public file "entryother.S" is asm that executes on AP's and "bootasm.S" executes on the BSP... both after the…
comment by sinatosk · 2016-10-30 · in Ask HN: x86 SMP with cpus on different processor modes -
…If you look at a project like xv6, and its implementations of the essence of coreutils... compare: https://github.com/mit-pdos/xv6-public/blob/master/cat.c to http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f...…
comment by steveklabnik · 2016-06-10 · in Doug McIlroy on Unix Taste (2014) -
I contacted them and they said use this: git://github.com/mit-pdos/xv6-public.git And OP should correct the original link to: https://pdos.csail.mit.edu/6.828/2014/xv6.html
comment by luckydude · 2015-12-28 · in Xv6, a simple Unix-like teaching operating system -
I think this is the official mirror: https://github.com/mit-pdos/xv6-public
comment by jey · 2015-12-28 · in Xv6, a simple Unix-like teaching operating system