Page 1 of 1

Using Clang to compile for the PSP

Posted: Fri Sep 12, 2014 12:38 am
by svanheulen
I've sucessfully used Clang/LLVM 3.5 to compile and assemble (but not link) an application for the PSP and I figured someone here might be interested.
Here's my example code: https://github.com/svanheulen/psp-clang-example
The program is very simple just to test compilation, all it does is turns the screen magenta when you run it. It does still require binutils (psp-ld), psp-config, psp-prxgen, pack-pbp, and mksfo from the PSPSDK. The important thing is that it doesn't require GCC and you don't need any patches for Clang/LLVM.

Re: Using Clang to compile for the PSP

Posted: Fri Sep 12, 2014 12:54 am
by codestation
The thing is that without a patched clang then all the allegrex specific asm opcodes cannot be used. This is important for psp kernel development and some other things. I think that hgoel was working with Clang too, dunno how much he advanced with it. But yea, i with that a complete clang port for the psp toolchain would be made (those C++14 apps on the psp 8-) )