-
Book Overview & Buying
-
Table Of Contents
D Cookbook
By :
Raspberry Pi is a small, low-cost computer that uses an ARM processor and the Linux operating system.
If you don't own a Raspberry Pi, you can emulate the hardware with QEMU. The process is described at http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/.
To compile D for an ARM/Linux Raspberry Pi, we need to execute the following steps:
Download the GNU D compiler (GDC) cross-compiler from http://gdcproject.org/downloads/. The header gives the platform you are on. The table lists the targets. The target for Raspberry Pi is arm-linux-gnueabi.
Compile the program. The command-line arguments of GDC that are based on the gcc compiler differ significantly from dmd in the following manner:
The output file will always be called a.out unless you specify a new name with the –o option.
You must always include the .d file extension when passing source files to the compiler.
Many of D's additional compile options need to be passed...
Change the font size
Change margin width
Change background colour