Graham,
I guess some of these answers should go into the porting HOWTO on
handhelds.org.
The kernel supports hard float via traps. If the application does not have
alot of floating point, then compiling with hard float (the default), will
generate a smaller binary. If the application does have alot of floating
point, then compiling with -msoft-float gives better performance.
Cross-compiling is often a headache.
Hmm, we need some nice xscale machines on the internet for the development
platform.
-Jamey
-----Original Message-----
From: Graham Averell [mailto:averell@ntt.co.uk]
Sent: Wednesday, October 11, 2000 8:56 AM
To: ipaq@handhelds.org
Subject: [iPAQ] Wish List
Hi,
I've nearly got xmess to compile using cross compiler from the skiff
toolchain.
It dies when linking. I not sure which LIB to use when using the
software
FPU
-msoft-float.
(A) do I need this option.
(B) is it faster or
(C) is trapd method unsupported by the kernel?
Also those compiling xmame and xmess have a look at file
/src/unix/unix.mak.
I've removed option -D__CPU_$(MY_CPU) from around line 130 and
replace
with -march=armv4.
Cross compiling this baby is mission and half. The m68kmake I
cheated by
making xmame/xmess I86 version
in different dir and copied across to the obj dir when needed. Plus
comment
some lines in unix.mak.
I should really change the makefile to ref the i86-gcc and give it
new set
of CFLAGS so can compile and run.
I don't recommend passing CC=arm-linux-gcc in the makefile.unix.
When it
comes to compiling the zlib it defaults to gcc.
Good luck modifying their configure file if you use arm-linux-gcc.
I've created symbolic links in the bin. ie "ln -s arm-linux-gcc gcc"
I did
this for all the arm-linux-? files.
I then made a excutable file called "arm" and enter the following:
(Got it
of the net somewhere?)
#! /bin/sh
PATH="/skiff/local/bin/:$PATH"
exec "$@"
Test it
./arm gcc -v
use it:
./arm make -f makefile.unix
Good luck
>PS. Of course, you don't want to forget:
> 4) Keep everyone posted on the list about successes and
> failures! Failures?
OK, I got xmame to compile on the skiff, but not run on the iPaq. It didn't
like the CPU selection. Hans (the author) may have to add in ARM CPU
support. I will work on the makefile some more. That sucker takes about 40
minutes to compile and the binary is 8.9MB, unstripped. If I ever get it to
run right, the stripped version should be about 5MB, maybe a little less (it
supports ~2300 games). As to possible copyright problems Jim mentioned, mame
itself is legal. Simply let users find their own game ROM files. Also, there
*ARE* free games available for mame that people have written and given away.
We could include a couple of free ROM files to get them going. Tom
_______________________________________________
iPAQ mailing list
iPAQ@handhelds.org
http://handhelds.org/mailman/listinfo/ipaq
Received on Wed Oct 11 09:05:43 2000
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:43:44 EDT