This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: PSP support? (MIPS)
- From: Sylvain Beucler <beuc at beuc dot net>
- To: libffi-discuss at sourceware dot org
- Date: Wed, 4 Mar 2009 22:13:45 +0100
- Subject: Re: PSP support? (MIPS)
- References: <20090304203352.GC7750@perso.beuc.net>
On Wed, Mar 04, 2009 at 09:33:52PM +0100, Sylvain Beucler wrote:
> Hi,
>
> I'm attempting to cross-compile GNU FreeDink, which uses libffi5, for
> Sony PSP (PlayStation Portable), i.e. a MIPS CPU.
>
> The GCC toolchain port, called pspdev, describes the architecture as
> "mipsallegrexel-psp-elf".
>
> I tried to force TARGET=MIPS with libffi 3.0.8, but this triggers:
> #if !defined(_MIPS_SIM)
> -- something is very wrong --
> in src/mips/ffitarget.h.
>
> Is there support in libffi for this platform?
>
>
> Similar project dyncall(.org) has PSP binaries, and it mentions in the
> source code "32bit MIPS", with "eabi" calling convention.
>
> http://code.google.com/p/pspstacklesspython cross-compiles Python
> which (normally) uses libffi. I'll send a mail to the maintainer to
> check whether he knows about this.
The maintainer just answered me that libffi and dependent Python
module (ctypes) weren't part of the port.
So do you think the platform is supported by libffi?
> So I guess it's technically possible, but I don't know how to specify
> the platform to the libffi build system.
>
> Any idea?
--
Sylvain