tool setup
legOS

legOS, the: [unauth, unoff] independent LEGO Mindstorms OS. Offers preemptive multitasking, energy saving, dynamic memory management, POSIX semaphores, native access to display, buttons, IR communication, motors and sensors.

 
 
  Binutils (Linux / UNIX)
  • Download binutils-2.9.1 sources from any Linux ftp site

  • Change to the binutils-2.9.1 directory and configure it:
    ./configure --prefix=/usr/local --target=h8300-hitachi-hms

  • Make and install binutils:
    make
    su
    make install

 
 
  Compiler (Linux / UNIX)
  • Download egcs-1.1.1 sources, for example from Cygnus

  • Change to the egcs-1.1.1 directory and configure it:
    ./configure --prefix=/usr/local --target=h8300-hitachi-hms

  • Add the following switch to CFLAGS in Makefile:
    -Dinhibit_libc

  • Make and install egcs:
    make LANGUAGES="c c++"
    su
    make install LANGUAGES="c c++"