Wanchun's thoughts on the Implementation of Orange's Operating System

Source: Internet
Author: User

Wanchun's thoughts on the Implementation of Orange's Operating System

This article is provided by Wanchun, a developer of the "disc" virtual optical drive software.

 

 

I often meet some friends who are familiar with the 8086 assembly language and like the assembly language. (many of these friends) in their daily use of assembly languages, they generally research other people's binary code for reverse engineering, or dynamic tracking and cracking software, shelling or plug-ins such as anti-plug-ins. There are certainly no mistakes in using assembly in this way, but many of these practices are perfect in daily work or hobbies. When you play to a certain extent, you will feel that the technology is similar, there is also a feeling of mechanical repetition, and the technology has entered a platform period.

Not long ago, a friend told me that he was going to learn compilation programming of Win32 APIs to improve his assembly cultivation. At that time, I suggested that he say that it would be worthwhile to study Win32 API Assembly again if he could be proficient in assembly disassembly. I suggest that he should deepen our understanding of the processor and operating system at this time, after all, it is time-consuming and labor-consuming to compile Win32 APIs. Using VC Win32 APIs can achieve the same job more easily and easily. (Suwon .) so I suggest him learn the following protection mode related things, which is also the core infrastructure of modern x86 CPU and operating system. I think learning the protection mode can give you a good understanding of the core details of the modern CPU and operating system. we all know that Windows has a magical paging memory management over dos, which can manage memory larger than 1 MB. Maybe our teachers also told us when we were at school, but I don't think many people can remember it. I don't know how to use it anymore. I think many of my friends are interested in such things as multi-task, multi-thread, kernel ring 0, and ring 3, but I think these things are too difficult to learn and don't know how to start learning. In fact, after learning the compilation to a level, it may be a good way to learn this knowledge so as to understand the operating methods of the operating system. Because the protection mode-related technologies are quite coherent and systematic, if you choose from gdt to LDT, IDT, TSS, PTE, PDDE, PFN, segment, door, trap, page, and other data structures and processor structures. You will find that they are actually the bricks, tiles, and foundations of modern operating systems. In fact, whether it is windows or Linux, there is a huge gap between the operating system, in this part they have a lot of common similar features.

In the ntldrand ntoskrl.exe kernels of windows, these processes are inevitable. Based on this, the NT kernel vmm, FS, kernel scheduling, exception, interrupt processing, Object Manager, etc, then, based on these system kernels, we can build a mature operating system. Of course, we cannot do something complicated like windows, but we can learn the basic principles of the protection mode, in this way, even if we research something in windows, we may have a deeper understanding. This is enough.

Every time we talk about the operating system, the first impression is that it is complex, profound, and difficult to grasp the details. as it turns out, modern operating systems are so complex that many interesting things are filled by the details of the vast desert, making it more and more difficult to learn. It is often time-consuming and laborious, it has not been very effective or can be used for a long time. the protection modes introduced by some compilation books are boring and easy to learn.

Recently I found an operating system implementation book "Orange's: Implementation of an operating system
The content solves the difficulties mentioned above. The author uses Practical Guidance Methods Starting from NASM, GCC development tools, and virtual machine usage, the simplest method is to use dozens of lines of assembly code to guide readers into the protection mode, which is full of curiosity. each step forward, the author adds some new code into the original code, working with the author from the real mode JMP to the protection mode, and then switching between call/iret and multiple tasks, these things can be displayed on the monitor to give you the most intuitive impression. In the end, it was amazing to basically implement a pilot operating system with basic process scheduling, FS and vmm. I suggest you have a friend who is interested in learning. You 'd better read the author's book first, then, I typed the code in a row. Even if I didn't understand it, it didn't matter much. We recommend that you do it yourself. Do not copy images quickly.

Under the guidance of the author, you may be connected to a technical surf that may not be able to experience it elsewhere. After such a process, the knowledge of the assembly language and the principle of the hyping system will definitely be improved. After many years, even if some of the details are forgotten, however, the methods and ideas will certainly remain in your memory and have a very positive impact on your development and programming.
I recommend that you read "Orange's: Implementation of an operating system
"!

 

[Title] implementation of an orange OS
【Author】 Yu Yuan
[Press] Electronic Industry Press
[Book no.] 978-7-121-08442-3
[Publication date] May 2009
[Open] 16
[Page number] Page 492
[Content Overview]
This book starts from the release of only 20 lines of guiding sector code, and presents the readers with a complete Operating System Framework step by step. The book focuses not only on the Code itself, but also on the ideas and processes for completing the code. This book is different from other theoretical books, but provides readers with a roadmap for hands-on practice. Readers can gradually complete the functions of each part based on the Roadmap, thus avoiding confusion and frustration when facing the entire operating system with tens of thousands of lines of code at the beginning.

 

Book Purchase address: Dangdang
Zhuo yuewang
Internet

 

More exciting activities: Lecture Hall
Bowen viewpoint open party

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.