Question:
How can i make a kernel? not linux...?
Trey
2008-07-07 14:40:18 UTC
how can I make a new kernel not a unix or Linux or anything else... like how windows does it... fresh new kernel maybe not even written in any know pc language just a new one made by... me... don't say: you need to know all this that the other... i am not posting for this.... i just want to know any kind of guide or codes or anything? cuz they made the unix kernel they made the Linux kernel.... NOT with any new language might i ad...
Three answers:
jplatt39
2008-07-07 15:42:37 UTC
Look, I can't find old list of tutorials and the ones I remember I keep getting 404s on. Here is one which is mostly about writing it in assembler:



http://www.mohanraj.info/josh.jsp



I find it amusing that most of the stuff I'm finding is based on Linux, since Linux itself was conceived and written on the Minix newsgroup and got input from Andy Tannenbaum who wrote Minix. What is Minix? It's a UNIX-based OS intended to teach you about OSes and how to write them -- Tannenbaum was doing his job by consulting on the kernel.



Unfortunately, Computers have gotten much more complicated since those days. Tannenbaum called the Linux kernel bloated and that is not something I see noted in the pages I've been turning up. This is a definite throwback to the old days and another assembly language tutorial:



http://www.emu8086.com/assembly_language_tutorial_assembler_reference/asm_tutorial_11.html



In sources I have a page seven of a tutorial about writing an os kernel in Java, of all languages. Pages 1 - 6 have gone 404.



I'm sorry I can't be more helpful. Hope this helps.
hurricane_floyd
2008-07-07 14:56:55 UTC
The Linux kernel is written mostly in C with a little assembly language around the edges, compiled with tools made from assembly language specific to the platform the kernel was built for.



Windows kernel too is made mostly in C, C++ and recently C#, with bits and pieces of x86 assembly launguage gluing it together.



All of this is built upon decades worth of previous code and examples, coded by thousands of people.



If you really wish to make something unique then learn assembly for your platform and build it up from there, coding by yourself without any help and you may have some compiler tools and maybe even a command prompt booting by the time you die from old age.



At the very base of all languages is the basic commands to tell each circuit in the machine what to do, that is what is referred to as assembly language.
JoelKatz
2008-07-07 14:50:45 UTC
Your question doesn't seem to make any sense. If you want to learn how to make a kernel, study existing kernels. You can obtain the source code to many kernels (including Linux) online.



Your question kind of feels like: "I don't know anything about bridge building. How can I make a completely new kind of bridge from the United State to Europe?" The best answer would be to advise you to study up on existing bridges and then decide what's reasonably within your ability.



So study up on existing kernels, and then make a decision about what is a reasonable thing to try to do.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...