GDC Cross Compiler

From D Wiki
Revision as of 22:04, 12 January 2014 by Notna (talk | contribs)
Jump to: navigation, search


Building cross compilers is always a tricky task. And building canadian-cross compilers can easily drive you crazy. This page provides an overview of working GDC cross compilers and tutorials on how to build your own.


Building from source

Crosstool-NG

The preferred way to build cross compilers is crosstool-NG. Crosstool-NG supports many different architectures and advanced build configurations (e.g. canadian-cross compilers). The latest crosstool-NG release currently only supports gcc 4.7 though, so we have to use the gdc-4.7 branch there. Newer crosstool-NG hg snapshots do support gcc-4.8.

See Cross Compiler/crosstool-NG for more information.

Making tools step by step

If it is not possible to use crosstools, the toolchain can be made manually step by step. This can also be used to make a native compiler.

See Cross Compiler/Generic for more information.




Compiler GDC