Sparrow operating system compiling tutorial-Introduction

Source: Internet
Author: User

The sparrow operating system is a simple Unix-like operating system that uses C language and a small part of assembly.

I am a computer enthusiast and want to learn how to write an operating system out of pure interest!

During the course of study, I found that there were very few tutorials in China, especially in terms of implementation. The system compilation process was completely reproduced only in the "write your own operating system, I was excited when I got this book. I made many great wishes. Although the book introduced many fans, it was still too difficult to get started, and most of the Code was completed by assembly.

Although I can understand a little compilation, writing a system is a long-term process. It is easy to get tired and boring to use assembly for a long time.

Out of continuous interest, I began to look for other tutorials, and soon I found many foreign resources, most of which use English, which has raised the threshold, I am not used to reading English.

I continue to stick to it out of continuous interest. I have read many tutorials, and the experiments in each chapter have to be realized, the reading of English tutorials has become very smooth, which gives me great encouragement!

I believe that many friends who really love computers are trying the same way as I did. I hope to share some fun with you through this tutorial, explore a basket of questions, find a few friends, and leave a little footprint!

I believe that interest is the greatest motivation!

In the course of study, I have read many foreign tutorials, materials, forums, etc. I found that there are so many people in the pure operating system world that they may be young or old, maybe a student, maybe a teacher, maybe a teacher in Asia and Africa, or maybe in Europe and America, or in any corner of the world or at any time, may sit in the hands of a laptop, he is persistently improving his own operating system, so he is happy and tireless!

Writing an operating system may be a boring thing. You will constantly ask yourself why you have to write a "garbage" that you only know when you have an operating system such as Linux "? People around you will be puzzled and even laugh at you!

The author's answer is still: "interest is the greatest motivation !"

After talking so much nonsense, I hope that those who are preparing to read this tutorial and are passionate about it will not give up. It is the most important thing to keep yourself interested!

Okay. Before the tutorial starts, let's take a look at the people I should thank!

The following is a list that has never been masked but has benefited a lot. I admire and thank you!

Yu Yuan "write your own operating system"
I started with this book. Although I did not follow what I wrote in the book, I also benefited a lot and never left!

Http://wiki.osdev.org/Main_Page
Http://forum.osdev.org/
The first is to write Wikipedia for the operating system, and the second is its forum. This website was created by teachers and students of an American university, brings together countless "small workshop" operating system fans in the world! In my opinion, it is a paradise for fans! Many people share their experiences selflessly at any time! Do not miss it. It is not highly demanding for English!

Http://www.osdever.net/bkerndev/Docs/title.htm
Http://www.jamesmolloy.co.uk/tutorial_html/index.html
These are two important tutorials for the author's learning! The first is the bran kernel tutorial, and the second is the James tutorial. Among them, the James tutorial has improved the bran tutorial and has become a truly complete kernel tutorial!

These two tutorials both advocate cross-guiding part and use grub, so there is no tedious compilation in the early stage. They directly enter the world of C and are easy to use. Another characteristic is that the chapters are short, concise, and easy to understand, this is an excellent tutorial!

At the same time, I suggest that you go to Bran and James's tutorials and go to osdev's wiki to learn more. It is very encouraging to have an original spirit of learning from foreigners!

Most of the sparrow operating systems reference the above two codes. Why do I need to write a tutorial?

First, the right should be translated into Chinese, so that more fans who are not good at English like me can stick to it or provide reference;

Second, the author also has some extensions to the tutorial, such as shell writing, exec, and elf loaders. The author also hopes to further improve this kernel, it is truly called an "Operating System", even a sparrow, although small but dirty, do not forget to fly!

 

This article writes very well .. From: http://blog.csdn.net/snowhws/archive/2010/04/08/5458069.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.