Changes between Version 2 and Version 3 of gcc


Ignore:
Timestamp:
01/19/2013 12:19:38 PM (9 years ago)
Author:
thomas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • gcc

    v2 v3  
    2020The libjava/configure script wants to use Which (/usr/bin/which), so install that too.[[BR]]
    2121
     22----
     23= GDC =
     24There is a language which aims to combine all the benefits of C, C++, C# and Java to one new language: '''D'''[[BR]]
     25
     26Even there is a complete compiler at dlang.org there is also a project which builds a gcc frontend for D, the [http://gdcproject.org GDC project]. The following section shows how to setup gcc to be able to compile D sources.[[BR]]
     27First, checkout the frontend sources. This step needs to be done only once as a tarball is created which contains all the sources. This is just to make playing with the frontend sources easier as they do not need to be checked out again and again:
     28{{{
     29git clone https://github.com/D-Programming-GDC/GDC.git &&
     30cd GDC &&
     31git checkout gdc-4.7 &&
     32rm -rf .git &&
     33rm .gitignore &&
     34cd .. &&
     35mv GDC gdc-4.7-<checkout-date> &&
     36tar -cJf gdc-4.7-<checkout-date>.tar.xz  gdc-4.7-<checkout-date>
     37rm -rf gdc-4.7-<checkout-date>
     38}}}
     39
     40Replace `<checkout-date>` by the current date, for example `gdc-4.7-20130119`. Save the `gdc-4.7-<checkout-date>.tar.xz` for later use (if any). Build the gcc with D fronend enabled by following commands (assuming the tarballs ar one directory level above):
     41
     42{{{
     43tar -xf ../gdc-4.7-<checkout-date>.tar.xz &&
     44tar -xf ../gcc-4.7.2.tar.bz2 &&
     45cd gdc-4.7-<checkout-date> &&
     46./setup-gcc.sh ../gcc-4.7.2 &&
     47cd ../gcc-4.7.2
     48}}}
     49
     50Next, follow the BLFS instructions to rebuild gcc. Add `d` to the --enable-languages option. Than this reads for example `--enable-languages=c,c++,fortran,java,objc,obj-c++,d`.
     51
     52----
    2253
    2354[wiki:Programming Up][[br]]