$ h8300-elf-gcc -v Reading specs from c:/Program Files/Renesas/HEW30/Tools/KPIT Cummins/GNUH8-ELF/v0403/h8300-elf/bin/../lib/gcc/h8300-elf/3.4-GNUH8_v0403/specs Configured with: /home/kpit/fsfsrc/gcc-3.4-20040813/configure --build=i686-pc-linux-gnu --host=i386-pc-mingw32msvc --enable-languages=c,c++ --target=h8300-elf --with-newlib --prefix=/usr/share/mingwgnuh8300_v0403_elf-1 Thread model: single gcc version 3.4-GNUH8_v0403
$ gcc -v Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug : (reconfigured) Thread model: posix gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
$ tar zxvf h4_101a.tgz
h4_101a.tgz を展開したのと同じディレクトリで展開して、パッチを当てます。
$ gunzip hos-v4-h8300-elf.diff.gz $ patch -p0 -d . < hos-v4-h8300-elf.diff
.section .vectorsを
.section ".vectors","ax"に変更。(ELF 対応)
ATT_INI({TA_HLNG, 0, OsTimer_Initialize});を
ATT_INI({TA_HLNG, (20000 / 8 - 1) , OsTimer_Initialize});に変更。
$ cd hos-v4/config $ make -f gcc.mak
$ cd hos-v4/sample/h83-akilan $ make -f gcc.makこれにより、