Required Knowledge: Difference between revisions

no edit summary
[unchecked revision][unchecked revision]
mNo edit summary
No edit summary
Line 10:
# '''Assembly''': You should have knowledge about the low-level language [[Assembly]]. Read a book. Take a course at school. Write some user-space code to familiarize yourself with it. You ''will'' need it, even if you plan to write most of your operating system in a higher-level language.
# '''Programming experience''': Learning about programming with an OS project is considered a bad idea. Not only should you know the language in which you will be developing inside out, you should also be familiar with version control, debugging, etc. - in short, you should have written quite a few user-space programs in that language successfully before trying OS development.
# '''Programming Practices''': You should know how to write both code and user documentation, and be prepared to carefully document all aspects of your code and design, even if the project is purely for your personal use. Also, you should learn and use suitable source control system, including setting up and using an off-site repository (e.g., Sourceforge, Savannah, GitHub, Heroku). These two practices alone will - not may, but ''will'' - save you a great deal of trouble in the future.
# '''UNIX experience''': You will soon notice that many of the tools used in OS development are developed for Unix, and later ported over to Windows. The Linux kernel is often used as reference or example for how things can be done, and many of the hobby operating systems have some resemblance to Unix. Having experience with the Unix command line (preferably bash or ksh) is a very important requirement. ([[Cygwin]] provides an easy-to-install Unix command line for Windows.). If you haven't, go ahead and use Linux or a BSD for a while - for Windows users, this can be accomplished quite easily by using a [[Emulators|virtualizer]] (see below) to host a virtual system, without the need to re-partition your home system. For MacOS users, you can simply use the Terminal - OS X is built on a Unix variant kernel (a combination of the Mach and BSD kernels), so as long as you have XCode and an emulator or virtualizer installed, no further tools are necessary (though you will need to set up a cross-compiler); the default Terminal shell is the Bourne-Again Shell, but C shell and Korn shell are available as well.
# '''Toolchain''': You must know the behavioral details of your compiler, assembler, linker, and make utility. You should have the documentation of the tools you use at hand, and refer to them ''before'' asking the community. Rest assured that any possible beginner's question about [[GCC]], [[GAS|GNU as]], [[NASM]], [[LD|GNU ld]], [[Visual Studio]] and [[GRUB]] has been answered twice over. Search before you ask.
Anonymous user