 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
laichung
Joined: 06 May 2005 Posts: 123
|
Posted: Fri Sep 01, 2006 6:05 pm Post subject: Libgmp port for PSP |
|
|
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. |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Fri Sep 01, 2006 10:46 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sat Sep 02, 2006 4:01 pm Post subject: Re: Libgmp port for PSP |
|
|
| 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?
| 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. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|