D for embedded system
Timo Sintonen
t.sintonen at luukku.com
Tue Oct 23 23:18:28 PDT 2012
On Tuesday, 23 October 2012 at 16:37:11 UTC, Martin Nowak wrote:
> Are there any patches required to build a
> cross-gdc?
Before compiling gcc-package there should be binutils and libc
for the target installed. Binutils is the gnu binutils package
and as libc I have used newlib, which is a lighter version than
gnu libc. Both are easy to compile with: configure
--target=arm-eabi (or whatever the target is)
for gcc I use this:
../gcc/configure --disable-bootstrap \
--enable-languages=c,c++,d --disable-nls --target=arm-eabi \
--without-headers --with-newlib --without-isl --without-cloog
( i have gcc sources in /usr/local/src/gcc and this script is in
/usr/local/src/build-gcc)
You should first compile and install only c compiler
(enable-langugages=c). If this works, then add c++ and if this
works, then add d.
If you want to make it for Cortex, one small patch is needed in
gcc/config/arm/t-arm-elf to get a working libgcc.a for thumb
code. You do not necessary need this for simple programs.
The d compilation fails currently to make the d runtime library
and I am working on this.
As suggested, we could start a wiki page for gdc cross compilers.
So for the wiki maintainer: please create the page and add link
to the front page
More information about the D.gnu
mailing list