This repository contains scripts that build:
targeting the Sony PlayStation (PSX / PSone, etc...) by default. This is early / in-progress work. Initially I started putting it together because I planned to port a C++ GDB RSP server to the playstation, but found the existing toolchains don't have good coverage of C++ support. I'm not sure I'll do that now, but I still think that a Newlib-based C/C++ (or Fortran, and other GCC frontends, if of interest in future) could be interesting.
All toolchain components build successfully, and the hello world example from PSn00bSDK builds and appears to execute correctly on ePSXe. The hello world example converted to C++ and using the STL (creating and traversing a vector) also works correctly.
Further testing is needed to establish what does and doesn't work more fully.
To clone:
export PSX_TOOLCHAIN_DIR=`pwd`/psx-toolchain
git clone [email protected]:gmarkall/psx-toolchain.git
cd ${PSX_TOOLCHAIN_DIR}
./clone-all.sh
To build:
./build-psx.sh
Once building is completed, add ${PSX_TOOLCHAIN_DIR}/../install-psx/bin
to
your PATH
.
Run make
in PSn00bSDK/examples/beginner/hello
. The resulting hello.exe
should be executable in the normal way.
An unsorted wishlist of ideas:
This is forked from The Embecosm RISC-V toolchain repository. The original README can be found in [README.original].