PS3 Compiling open-source PS3 toolchain nowadays (in 2020)

@Crystal why not use a newer GCC? Sorry if the question is too dumb, I'm still learning, there's no latest GCC support for the PS3 and was version 7.2.0 the last one? I also don't understand why they jumped from version 4.x to 7.x
 
The results of a couple of tests dumping lv2 using the default system buffer for file i/o:

for 4.21 cfw:
elapsed time: 5.142354
for 4.84 hen:
elapsed time: 4.683867

compare to using our own user space buffer for file i/o:

for 4.21 cfw:
elapsed time: 0.008148
for 4.84 hen:
elapsed time: 0.008045

I guess that is in seconds using clock() and dividing by CLOCKS_PER_SEC

631 times as fast for cfw
582 times as fast for hen
with this small amount of data, maybe better just to say approximately 4 or 5 seconds faster.
These times are only for the block of code that does the actual copy and save, so doesn't include start up code, etc

These results may suggest it could be worthwhile trying setvbuf() to speed up file i/o.

the updated code:
1. added timer.
2. fixed typo which made alternate save path same as default save path.
3. instead of creating custom opd entry for copy_to_user as we would for a custom function, uses the official opd entry already present for copy_to_user which only requires one lv2 poke instead of three.

To adapt to different firmware version requires only 2 changes:
1. address of copy_to_user opd entry
2. address of syscall 20 entry in syscall table, or whatever syscall used
 

Attachments

Any news on updating GCC and newlib? I'm creating a game engine with user interface with C++17/20 and the toolchain is too old for it :/
 
Any news on updating GCC and newlib? I'm creating a game engine with user interface with C++17/20 and the toolchain is too old for it :/

you'll have to update it yourself. Also keep in mind GCC removed support for the SPU, so you'll have to keep an older GCC for compiling SPU binaries.
 
Yeah but I have no experiences in updating a sdk, gcc patches, newlib modifications...
I'm seeing some people trying to update the sdk, but the work is never finished sadly.
 
Hello guys

On the PSL1GHT topic, with a few other devs, we are trying to update and reboot the PSL1GHT open source PS3 sdk. We made a discord server to discuss steps and work on bringing some life back to the psl1ght sdk.
If anyone wants to join, here's a link: https://discord.gg/f7AQGJRyYN

I've got access to the ps3dev organization on Github, so we should have freedom to update repos, review and merge PRs, etc.

Everyone if invited to join, our aim is to bring the SDK up to date and make it simple for new devs to jump and start creating homebrew for the PS3.
 

Similar threads

Back
Top