O'Reilly logo

D Cookbook by Adam D. Ruppe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running D on bare metal x86 with a stripped runtime

D can do most of what C can, including writing bare metal code (without an operating system) with minimal runtime library requirements. While most D libraries (including the Phobos standard library) will not work in such a minimal environment, we can still use the majority of the core language if we opt for enough library support.

Getting ready

Running experimental bare metal programs on physical hardware is a slow and time consuming process. Instead, I recommend that you set up an emulator or virtual machine. In this book, we'll use QEMU; this may be available in your Linux distribution's package manager, or you can build it from a source by downloading the code from http://qemu.org/. We'll also ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required