You won't understand a thing, though. You already have the source code for Linux, Minix and tons of other OSes, pedagogical or otherwise. Why generate yet another that you won't understand?