Live data from Hacker News

Xv6 - Unix V6 rewritten in modern, ANSI C for MIT 6.828

pdos.csail.mit.edu

1–10 of 16 posts

Re: Xv6 - Unix V6 rewritten in modern, ANSI C for MIT 6.828

#2
I managed to get it compiled entirely with clang, but for the fact that clang doesn't have 16-bit assembler support (yet).

I really like it for the fact that it's the bare essentials of a complete kernel. When wondering how, for example, scheduling works, this is a much better idea on how the mechanics work. Obviously, the algorithms used might be far more sophisticated in a modern, production kernel, but that's not why you would use X6v.

Re: Xv6 - Unix V6 rewritten in modern, ANSI C for MIT 6.828

#4

Will be nice to have a Cross Reference of the code, to be able to give it a view. Something like: http://sourceforge.net/projects/lxr/

I heartily agree. In the meantime, the PDF print of the code isn't bad: http://pdos.csail.mit.edu/6.828/2011/xv6/xv6-rev6.pdf

Re: Xv6 - Unix V6 rewritten in modern, ANSI C for MIT 6.828

#7
post #2

I managed to get it compiled entirely with clang, but for the fact that clang doesn't have 16-bit assembler support (yet). I really like it for the fact that it's the bare essentials of a complete kernel. When wondering how, for example, scheduling works, this is a much better idea on how the mechanics work. Obviously, the algorithms used might be far more sophisticated in a modern, production kernel, but that's not…

It's "Xv6", not "X6v", btw. It's a kind of portmanteau of x86 and V6.

Edit: (For context, the submission title was originally "X6v".)

Re: Xv6 - Unix V6 rewritten in modern, ANSI C for MIT 6.828

#8

Will be nice to have a Cross Reference of the code, to be able to give it a view. Something like: http://sourceforge.net/projects/lxr/

Haven't used LXR. I've used GNU GLOBAL and OpenGrok. I like OpenGrok.

There's a comparison (that includes LXR) on the OpenGrok site.

Re: Xv6 - Unix V6 rewritten in modern, ANSI C for MIT 6.828

#9
post #7
post #2

I managed to get it compiled entirely with clang, but for the fact that clang doesn't have 16-bit assembler support (yet). I really like it for the fact that it's the bare essentials of a complete kernel. When wondering how, for example, scheduling works, this is a much better idea on how the mechanics work. Obviously, the algorithms used might be far more sophisticated in a modern, production kernel, but that's not…

It's "Xv6", not "X6v", btw. It's a kind of portmanteau of x86 and V6. Edit: (For context, the submission title was originally "X6v".)

Yes, thank you.
Post reply on HN