Advertising (This ad goes away for registered users. You can Login or Register)

Using Clang to compile for the PSP

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Locked
svanheulen
Posts: 33
Joined: Thu Dec 23, 2010 6:30 pm

Using Clang to compile for the PSP

Post 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.
Advertising
codestation
Big Beholder
Posts: 1660
Joined: Wed Jan 19, 2011 3:45 pm
Location: /dev/negi

Re: Using Clang to compile for the PSP

Post 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-) )
Advertising
Plugin list
Working on: QPSNProxy, QCMA - Open source content manager for the PS Vita
Playing: Error: ENOTIME
Repositories: github, google code
Just feel the code..
Locked

Return to “Programming and Security”