HOS-V4(h83,sh2gcc)で動作確認しましたが,汎用です 開発環境はGCC Ver3.2です ftp://x02.mech.osaka-sandai.ac.jp/pub/h8/sci_printf.c ftp://x02.mech.osaka-sandai.ac.jp/pub/h8/malloc.c printf() 1.sci_printf (const char *fmt, ...); 衝突を避けるため名前を変えました Formatについてはソースを参照してください 1文字出力 putc_(char c)を用意してください 2. malloc(size_t len) free(void *p) calloc() realloc() 使い慣れているので,重宝しています 初期化関数 inizMem (void *start, size_t len); を最初に呼び出します h8300 AKI-H8/3068F inizMem ((void *)&_end, (long)((char*)0x00600000-(char*)&_end)); sh2 AKI-SH2-7045F inizMem ((void *)&_end, (long)((void *)0x00500000-(void*)&_end)); フリーエリアすべてをmalloc領域にしています //// nkobayas@xxxxxxxxxx