gcc 4.3.0 (experimental) patch for PSP programming support

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
aeolusc
Posts: 18
Joined: Sat Oct 14, 2006 12:17 pm

gcc 4.3.0 (experimental) patch for PSP programming support

Post by aeolusc »

Tested to all known psplibraries, works fine except libbulletml.
As gcc 4.3.0 gets more limit to C++ compiling so that functions just like strlen, exit and so on should not be used without <string.h>/<stdlib.h> included.
Modify source codes could have the problems resolved.

Here's the patch:
http://www.pspsp.org/down/gcc-4.3.0-PSP.patch.gz

get gcc 4.3.0 experimental:
svn co svn://gcc.gnu.org/svn/gcc/trunk gcc-4.3.0

PS: the devkitPro have already made gdb 6.7.1 working for PSP, patch is available in its cvs on sourceforge
hlide
Posts: 739
Joined: Sun Sep 10, 2006 2:31 am

Re: gcc 4.3.0 (experimental) patch for PSP programming suppo

Post by hlide »

aeolusc wrote:Tested to all known psplibraries, works fine except libbulletml.
As gcc 4.3.0 gets more limit to C++ compiling so that functions just like strlen, exit and so on should not be used without <string.h>/<stdlib.h> included.
Modify source codes could have the problems resolved.

Here's the patch:
http://www.pspsp.org/down/gcc-4.3.0-PSP.patch.gz

get gcc 4.3.0 experimental:
svn co svn://gcc.gnu.org/svn/gcc/trunk gcc-4.3.0

PS: the devkitPro have already made gdb 6.7.1 working for PSP, patch is available in its cvs on sourceforge
insight as well ?

you told gdb 6.7.1 works for PSP, but how gdb communicates with PSP ?
coolspace
Posts: 12
Joined: Sat Nov 10, 2007 5:45 pm

Re: gcc 4.3.0 (experimental) patch for PSP programming suppo

Post by coolspace »

hlide wrote:
aeolusc wrote:Tested to all known psplibraries, works fine except libbulletml.
As gcc 4.3.0 gets more limit to C++ compiling so that functions just like strlen, exit and so on should not be used without <string.h>/<stdlib.h> included.
Modify source codes could have the problems resolved.

Here's the patch:
http://www.pspsp.org/down/gcc-4.3.0-PSP.patch.gz

get gcc 4.3.0 experimental:
svn co svn://gcc.gnu.org/svn/gcc/trunk gcc-4.3.0

PS: the devkitPro have already made gdb 6.7.1 working for PSP, patch is available in its cvs on sourceforge
insight as well ?

you told gdb 6.7.1 works for PSP, but how gdb communicates with PSP ?
using psplinkusb
psplinkusb can start a gdb server on psp
aeolusc
Posts: 18
Joined: Sat Oct 14, 2006 12:17 pm

Post by aeolusc »

Updated patch link.
Resolved problem of compiling __builtin_allegrex_cache and update gcc to newest svn rev for patch generation.
Note: removed check to 1st argument of __builtin_allegrex_cache so that we should ensure it's smaller than 0x1f ourselves.
Post Reply