I successfully compile the library of GMP, if anyone interested about it , I can share the file on the web. The source code can download from the web below.
GNU Multiple Precision Arithmetic Library
http://www.swox.com/gmp/
But I have fews question about compiling. Can anyone please kindly help me?Thanks!
1. Since psp-sdk is a complete compiler for compiling source code, so firstly I just try to edit the "configure" file to add a host for psp. But you know it must fail, because configure will compile a test.c file to check the default extension of the output file. (of course many other tests afterwards, but we cant skip this test) So what can I do?
The way I used is , run configure and set host as "none" (to tell gmp to use c code, since gmp can compile as platform depend), after configure complete those setting, I change the makefile in every folder and re-set all the CC to psp-gcc, and add some tags for LIB ,etc. thanks god it is ok and the library generated seem work perfect. But I think someone can teach me a better way to do this again.
2. GMP use asm code to speed up the calculation. But that's depend on the CPU. The question is , is PSP cpu 64bit or 32bit, or does anyone test it before? Since R4000 based cpu seems having both 64bit or 32bit in market.
Thanks everyone.
Libgmp port for PSP
The PSP is 32bit custom R4000 MIPS core. There is however the vfpu which is perfect for arithmetic and data processing.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl
Re: Libgmp port for PSP
Many libraries and programs in the psp svn repository use autoconf, so you can see how they do it. See e.g. SDL/README.psp, under "Building autoconf applications", and just ignore the --with-sdl part.laichung wrote:1. Since psp-sdk is a complete compiler for compiling source code, so firstly I just try to edit the "configure" file to add a host for psp. But you know it must fail, because configure will compile a test.c file to check the default extension of the output file. (of course many other tests afterwards, but we cant skip this test) So what can I do?