コンパイラのコンパイル

次のページを参考にして、binutilsgccnewlibコンパイルを行います。

$ cd binutils-2.15
$ sudo ./configure --prefix=/usr/local/h8300-hms --program-prefix=h8300-hms- --target=h8300-hms
$ sudo make CC='cc -no-cpp-precomp' CFLAGS="-O2 -fomit-frame-pointer" all
$ sudo make install

$ cd gcc-3.4.3
$ sudo ./configure --prefix=/usr/local/h8300-hms --program-prefix=h8300-hms- --target=h8300-hms --enable-languages=c --with-newlib --with-headers=/usr/src/newlib-1.13.0/newlib/libc/include
$ sudo make CC='cc -no-cpp-precomp' CFLAGS="-O2 -fomit-frame-pointer" all
$ sudo make install


$ cd newlib-1.13.0
$ sudo ./configure --prefix=/usr/local/h8300-hms --program-prefix=h8300-hms- --target=h8300-hms
$ sudo make CC='cc -no-cpp-precomp' CFLAGS="-O2 -fomit-frame-pointer" all
$ sudo make install