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?

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



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Apr 05, 2005 11:16 am    Post subject: gcc 4? Reply with quote

I was checking out Fedora Core 4 test 1 the other day. It comes with gcc 4.0 standard. Is any work toward gcc 4 for PS2 going on? It seems to have stopped at 3.2.2.

By the way, the current dev branch of gcc is 4.1.
Back to top
View user's profile Send private message AIM Address
Neil Stevens



Joined: 27 Jan 2005
Posts: 79
Location: California

PostPosted: Tue Apr 05, 2005 12:33 pm    Post subject: Reply with quote

What value does gcc 4 bring?

Does it represent as much of a slowdown vs gcc 3 as gcc 3 did vs 2.95?
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Apr 05, 2005 1:14 pm    Post subject: Reply with quote

Slower compiles for faster code? Yeah, that sucks.
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Apr 05, 2005 1:57 pm    Post subject: Reply with quote

You can find the info about gcc 4 here:
http://gcc.gnu.org/gcc-4.0/changes.html
Back to top
View user's profile Send private message AIM Address
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Tue Apr 05, 2005 2:15 pm    Post subject: Reply with quote

I guess gcc 3.2.3 or 3.3 or whatever the number was has a new mips core that should give a lot better results, however it also means our patches would no longer work. In other words, it'd be a lot of work to get it working.

As far as I'm concerned, gcc 4 is still too much of an unknown to worry about it for now. We spend too much time on tools and not enough on better projects anyways ;)
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
Neil Stevens



Joined: 27 Jan 2005
Posts: 79
Location: California

PostPosted: Tue Apr 05, 2005 2:18 pm    Post subject: Reply with quote

ooPo wrote:
Slower compiles for faster code? Yeah, that sucks.
During development, yeah, it's horrible. Slowdowns for optimized release code are fine, but not for debug versions.

Edit: Looks like it's actually faster, though, fortunately:
Quote:
When compiling without optimizations (-O0), the C++ frontend is much faster than in any previous versions of GCC. Independent testers have measured speed-ups up to 25% in real-world production code, compared to the 3.4 family (which was already the fastest version to date). Upgrading from older versions might show even bigger improvements.


It's about time.
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Tue Apr 05, 2005 2:54 pm    Post subject: Reply with quote

bd started work on porting the 3.2.3 patches to 4.x. Alas, it seems he's too busy bringing jihad to PSP infidels to respond in this thread :P.

How far did you get bd?
_________________
"He was warned..."
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Tue Apr 05, 2005 5:26 pm    Post subject: Reply with quote

I came quite far, new datatypes, mmi and cop2 was okish, but and this is a reason for seppuku, cause any coder knows the value of backing up his/hers work, yet in a crititcal moment I failed to comply to the tradition set before us by the great masters of this universe, and all the stances and techniques are now lost.

Atm I have only downloaded the sources, but I intend to start again. doing it over cvs would be a good start I reckon.
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Tue Apr 05, 2005 6:16 pm    Post subject: Reply with quote

Neil Stevens wrote:
Looks like it's actually faster, though, fortunately:
When compiling without optimizations (-O0), the C++ frontend is much faster than in any previous versions of GCC. Independent testers have measured speed-ups up to 25% in real-world production code, compared to the 3.4 family (which was already the fastest version to date). Upgrading from older versions might show even bigger improvements.


3.4 generated alot better code than 3.2.2 and I saw some major possibilities with the DFA engine, 4.x has taken it all to a new level, so yes alot better code is indeed possible, and for sure reason enough to bother about 4.x, it will take some time but its interesting work :)
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Apr 06, 2005 5:27 am    Post subject: Reply with quote

blackdroid wrote:
I came quite far, new datatypes, mmi and cop2 was okish, but and this is a reason for seppuku, cause any coder knows the value of backing up his/hers work, yet in a crititcal moment I failed to comply to the tradition set before us by the great masters of this universe, and all the stances and techniques are now lost.

Atm I have only downloaded the sources, but I intend to start again. doing it over cvs would be a good start I reckon.


I've done that before. Did that three times on one project. The fourth time through, it goes much faster and you're a lot more careful about saving for some weird reason. ;) :-D
Back to top
View user's profile Send private message AIM Address
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Tue Nov 15, 2005 12:08 am    Post subject: Reply with quote

hi all,

any news on GCC 4.0 for the PS2 ? I know that most of the poeple don't care anymore.. but others yes :)

can we help with the porting or something ?

thx.
Back to top
View user's profile Send private message Visit poster's website
Ixar



Joined: 26 Sep 2006
Posts: 11

PostPosted: Tue Sep 26, 2006 8:36 pm    Post subject: Reply with quote

Hello !

I am new over there, and I may help retrofitting gcc 3.2 stuff into the new 4.0 version. If you have already done some work, I can try to complete it as far as I can.

Regards,
Ixar

PS: I have already read the gcc 3.2 patches. And a lot of messages on this forum. If you have any pointer I should refer to, don't hesitate.
Back to top
View user's profile Send private message
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Tue Sep 26, 2006 10:04 pm    Post subject: Reply with quote

SVN (dunno if you are aware of it), for the last patches release :
http://svn.ps2dev.org/listing.php?repname=ps2&path=%2Ftrunk%2Fps2toolchain%2F&rev=0&sc=0

then Oopo, the toolchain master !

It would be really great if you could update the toolchain to GCC 4.0 !
_________________
http://psxdev.info/evilo/
Back to top
View user's profile Send private message Visit poster's website
Ixar



Joined: 26 Sep 2006
Posts: 11

PostPosted: Tue Sep 26, 2006 10:41 pm    Post subject: Reply with quote

Yes I already had a look at the SVN files. I have read most of the patches to understand the goal of the patches.

However I need to read more documentation (I am still reading) to understand how to implement properly the code into gcc4.

I will do a summary of the different things that needs to be patched, and were I will do the patch to make sure I don't forget anything, and that I have clearly understood.
Back to top
View user's profile Send private message
Ixar



Joined: 26 Sep 2006
Posts: 11

PostPosted: Tue Sep 26, 2006 11:50 pm    Post subject: Reply with quote

According to the patch comments, it seems that their is some differences between PS2 Linux kit toolchain and the homebrew ps2dev toolchain.

I need more information on that. Is it related to the RTE ?

For my own test, I have ps2 linux kit dvd. (Just bought yesterday).

If something can be done to manage differences between RTE/non-RTE compilation, I may do it properly if I have the information.
Back to top
View user's profile Send private message
Ixar



Joined: 26 Sep 2006
Posts: 11

PostPosted: Thu Sep 28, 2006 4:27 am    Post subject: Reply with quote

I have studied the binutils part of the toolchain.
I will implement the r5900 starting from mips r1000 as it's the only way to do it properly even if it's more similar to the r3000. Since we can't disable instruction properly from the r3000... I am relying on binutils 1.14 patches for that part of the work. It should be pretty fast since it's almost good in the patch.

gcc stuff seems more tricky. But I will see that when binutils is ready.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 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