forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GCC 4.4.0 and PSP Toolchain

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Wed Apr 29, 2009 10:53 pm    Post subject: GCC 4.4.0 and PSP Toolchain Reply with quote

Will GCC 4.4.0 work with the last PSP Toolchain patch? (was generated for 4.3.2)

We are falling behind, I'm not really the person to go poking around diff files because I'll definitely miss something.
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Apr 30, 2009 5:32 am    Post subject: Reply with quote

The toolchain doesn't work with 4.3.3, so I'd guess that's probably a "no".
Back to top
View user's profile Send private message AIM Address
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Apr 30, 2009 8:50 am    Post subject: Reply with quote

J.F. wrote:
The toolchain doesn't work with 4.3.3, so I'd guess that's probably a "no".


*Sigh*

Is that because of the fact that binutils is out of date too?
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Apr 30, 2009 9:07 am    Post subject: Reply with quote

Wally wrote:
J.F. wrote:
The toolchain doesn't work with 4.3.3, so I'd guess that's probably a "no".


*Sigh*

Is that because of the fact that binutils is out of date too?


Possibly. It does tend to lag behind the compiler as far as being kept up to date goes. I'm certain some updates to gcc REQUIRE the latest binutils as well or kablooey! It's usually more of a problem with the c++ compiler than the rest.
Back to top
View user's profile Send private message AIM Address
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Thu Apr 30, 2009 6:03 pm    Post subject: Reply with quote

more important than gcc 4.4 is to update binutils. I'm trying to create packages for linux similar to my windows ones, and managed to build a working sdk but there is a bug with binutils and the host compiler gcc 4.3.3.

Upgrading binutils is complicated, I've tryed to manually patch the 1.17 version using the 1.16 patch and even though i managed to merge the changes and compiled the assembler was broken.

We need to look better to it and upgrade from 1.16 to 1.19.

Once i finish my scripts I'll post a patch for the linux build scripts that allows us to build the SDK without needing to downgrade the host gcc to 4.2
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Thu Apr 30, 2009 11:07 pm    Post subject: Reply with quote

are you that guy who makes minpspw i always get you mixed up with someone else
Back to top
View user's profile Send private message MSN Messenger
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Fri May 01, 2009 4:50 am    Post subject: Reply with quote

yes :)

heimdall == jetcube
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
slasher2661996



Joined: 22 Feb 2009
Posts: 91
Location: Melbourne Australia ZOMG

PostPosted: Fri May 01, 2009 9:14 am    Post subject: Reply with quote

in what language :P
Back to top
View user's profile Send private message
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Fri May 01, 2009 9:46 am    Post subject: Reply with quote

What have the upgrades to gcc & binutils given us other than headaches and more threads on the toolchain not compiling properly? Have there been any advantages? Are there any advantages to further upgrading?
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Fri May 01, 2009 10:16 am    Post subject: Reply with quote

jsharrad wrote:
What have the upgrades to gcc & binutils given us other than headaches and more threads on the toolchain not compiling properly? Have there been any advantages? Are there any advantages to further upgrading?


I heard gcc 4.4.0 has better overall optimization.
Back to top
View user's profile Send private message
Kreationz



Joined: 18 May 2008
Posts: 53

PostPosted: Fri May 01, 2009 1:56 pm    Post subject: GCC 4.4.0 Reply with quote

Also doesn't it have more MIPS specific optimizations. We are programming for the PSP... >_>

Also, better optimization is something some us need *cough* DX64 *cough*
Back to top
View user's profile Send private message
Kreationz



Joined: 18 May 2008
Posts: 53

PostPosted: Wed May 06, 2009 8:44 am    Post subject: Just a question. Reply with quote

Who would be the individual in charge of doing something like this?
Back to top
View user's profile Send private message
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Wed May 06, 2009 8:49 am    Post subject: Reply with quote

Whoever feels like it, do it yourself, make sure it works, and submit a patch if you like. ;)
Back to top
View user's profile Send private message
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Wed May 06, 2009 5:35 pm    Post subject: Reply with quote

jsharrad wrote:
What have the upgrades to gcc & binutils given us other than headaches and more threads on the toolchain not compiling properly? Have there been any advantages? Are there any advantages to further upgrading?


There have been some benefits. On the GCC side lots of things have improved you can check here: http://gcc.gnu.org/gcc-4.3/changes.html. On the newlib with the latest 1.17 you now have a full re-entrant libc and friends which means that if you use threaded code your libc will act as expected instead of some weird stuff when 2 threads call the same function. Also you have lots of improvements in performance. http://sourceware.org/ml/newlib/2008/msg00754.html. On the binutils side upgrading them besides fixing a build problem with the latest host GCC 4.3.x would fix some bugs http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/src/binutils/NEWS?rev=1.71&content-type=text/plain&cvsroot=src&only_with_tag=binutils-binutils-2_19_1 and improve the quality of the assembly code.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
DataMatrix



Joined: 01 May 2009
Posts: 3
Location: Sofia, Bulgaria

PostPosted: Thu May 07, 2009 12:18 am    Post subject: Reply with quote

I would like to ask if http://ps2dev.org/psp/Tools/Toolchain/psptoolchain-20070626.tar.bz2 is the latest package?
I fail to compile both on Debian 5 and Ubuntu 9.04 (Intel Core Duo (Ubuntu 9.04 and virtual machine debian5) and AMD Athlon64 (debian 5) systems)
(running as recommended: CC=gcc-4.2 ./toolchain.sh
It just stops with
Code:
make[1]: Leaving directory `/usr/local/pspdev/build/newlib-1.15.0/build-psp'
make: *** [all] Error 2
../scripts/004-newlib-1.15.0.sh: Failed.


_________________
null
Back to top
View user's profile Send private message Visit poster's website
Kreationz



Joined: 18 May 2008
Posts: 53

PostPosted: Thu May 07, 2009 2:53 am    Post subject: Reply with quote

jsharrad wrote:
Whoever feels like it, do it yourself, make sure it works, and submit a patch if you like. ;)


Ehh.. I use VisC++ Express w/Heimdall's package so this wouldn't be my forte, however I believe Wally is working on it. I was just wondering who is in charge the the toolchain.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu May 07, 2009 8:43 am    Post subject: Reply with quote

Kreationz wrote:
jsharrad wrote:
Whoever feels like it, do it yourself, make sure it works, and submit a patch if you like. ;)


Ehh.. I use VisC++ Express w/Heimdall's package so this wouldn't be my forte, however I believe Wally is working on it. I was just wondering who is in charge the the toolchain.


Its a bit out of my league.
Back to top
View user's profile Send private message AIM Address
matt_hargett



Joined: 16 Jun 2009
Posts: 1
Location: Mountain View, CA

PostPosted: Tue Jun 16, 2009 7:55 am    Post subject: Reply with quote

The loop transformation/optimization improvements in GCC 4.4 should be a huge boon to a somewhat cache-limited platform like the PS2. You just have to make sure that you build with CLOOG, PPL, and MPFR support.

On top of this, being able to use the additional C++0x language features would allow nice code improvements in open source emulators/code written in C++.

If anyone has trouble getting this to work, let me know and I'll try to help.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Wed Jun 17, 2009 6:07 pm    Post subject: Reply with quote

the current gcc 4.3.3 buils already with MPFR and GMP, can you detail what are the requirements and how easy is to build the remaining CLOOG and PPL on Linux/Windows/Unix?

I've tryed long time ago with my windows box but didn't manage to build them (i didn't spent too much time into it) if you have some cookbook on how to do it that would be great!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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