[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MzScheme on Sharp Zaurus PDA



Hello!

Using Cross Compiler for StrongARM (http://more.sbc.co.jp/slj/apps.asp)
MzScheme may be easily build for Sharp Zaurus SL-5000D Linux-based PDA.
http://www.linuxdevices.com/articles/AT2134869242.html

I was using Linux/Intel as the host box, and 200alpha5 from CVS.

The only "patch" necessary for cross-compilation is in Boehm's GC 
src/mzscheme/gc/Makefile.in

42c42
< HOSTCC=$(CC_FOR_BUILD)
---
> HOSTCC=$(CC)

CC_FOR_BUILD (and thus HOSTCC) has to be set to "gcc" because otherwise auxiliary tools
like 'if_not_where' will be compiled with cross-compiler and make will die
trying to run them on Intel box.
BTW: The full-blown implementation of the same approach may be seen in
"Makefile.in" of gcc distribution.

With this little problem fixed, MzScheme compiled with:

export CC="/opt/Embedix/tools/arm-linux/bin/gcc"
export CC_FOR_BUILD="gcc"
./configure --prefix=/your/target/dir --without-x --disable-mred --enable-dynlib
make

works fine on SL-5000D. 

The result is MzScheme on 6.6 oz box!

Merry Christmas and Happy New Year,           
                               Kirill.