libretro / libretro-cap32

caprice32 4.2.0 libretro
21 stars 34 forks source link

PS3/PSL1GHT build fix #109

Closed crystalct closed 2 years ago

DSkywalk commented 2 years ago

@crystalct You haven't explained much, but I understand that the devkit doesn't have the function: strnlen.

why can't you use the define PSL1GHT? What would be the difference between PS3 vs PSL1GHT? PS3 would it be the official S0NY devkit?

Thanks :+1:

crystalct commented 2 years ago

The most used PSL1GHT devkit is based on gcc 4.x and the last PSl1GHT toolchain is based on gcc 7.x. There are many differences between then. Old PSL1GHT and old official Sony devkit share gcc 4.x version and there are some similar things. One example is PPU Intrinsics that are exactly the same on PSL1GHT and Sony, due to the fact that many things are not an invention of sony, but come from previous IBM (open source) work on development on CELL CPUs. Anyway caprice sources cannot compiled with old official sony devkit as they are. To have two different variable (PS3 and PSL1GHT) help a lot to differentiate when we have to compile, especially in the presence of different gcc versions.

DSkywalk commented 2 years ago

I still had the old devkit I used for the scene a few years ago, I'll keep an eye on it and try to update it.

Thanks a lot for the explanation and for contributing.