Chapter 11. D for Kernel Coding

Let's turn our attention to using D to start writing bare metal code—the origin of an x86 kernel in D and laying some groundwork for bare metal in other environments. We'll start with the following:

  • Running D on bare metal x86 with a stripped runtime
  • Adding interrupt handling to the bare metal x86 code

Introduction

Most D users today use D to program traditional computers with operating systems such as Windows, OS X, or Linux. However, with custom runtime code and the open source GRUB bootloader (a program which boots the computer and loads our program), we can also run D programs compiled with an unmodified copy of the DMD compiler on Linux with bare metal to form the basis of writing an operating system kernel in D.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.198.59