開発環境

うりゃうりゃ。gcc-3.4.6とか、binutils-2.17試したけどダメ。
まあ、古くてもcompileできれば大丈夫。
ftp://ftp.gnu.org/gnu/gcc/gcc-3.4.1/gcc-3.4.1.tar.bz2
ftp://ftp.gnu.org/gnu/binutils/binutils-2.15.tar.bz2
ftp://sources.redhat.com/pub/newlib/newlib-1.12.0.tar.gz
tar jxvf binutils-2.15.tar.bz2
tar jxvf gcc-3.4.1.tar.bz2
tar zxvf newlib-1.12.0.tar.gz
・binutils
./configure –target=h8300-hms –prefix=/usr/local
make
make install
・gcc(rootじゃないとダメ)
./configure –target=h8300-hms –enable-languages=”c++” –with-newlib –with-headers=/home/kazu/usr/h8-3069f/newlib-1.12.0/newlib/libc/include –prefix=/usr/local
make LANGUAGES=”c c++”
make install
・newlib
./configure –target=h8300-hms –prefix=/usr/local
make
make install
・他に必要なもの
ram3068.x
crt/30xxcrt0.S
crt/3664crt0.S
crt/ramcrt0.S
include/h8/reg3048.h
include/h8/reg3067.h
include/h8/reg3664.h
include/h8/reg704x.h
include/h8/syscall.h
Makefileでのincludeは、compile optionに -I../include とか入れること。
・httpdを動かす
httpd.c, Makefile を若干修正してmake
put httpd.motして、http://192.168.1.200/ するとお見事。