..:: PCSX2 Forums ::..
Register | Help | Log In |
Register PCSX2 Site Forums Member List Donate View Today's Posts Search

Current time: 05-23-2013, 01:16 AM Hello There, Guest! (Login — Register)

..:: PCSX2 Forums ::.. / Off Topic / Chatterbox v
« Previous 1 ... 83 84 85 86 87 88 Next »
/ PCSX2 compilation using clang/llvm



User(s) browsing this thread: 1 Guest(s)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
PCSX2 compilation using clang/llvm
Author Message
echosierra Offline
PCSX2 dev wannabe
***

Posts: 619
Joined: Dec 2008
Location:
Reputation: 0
Post: #1
PCSX2 compilation using clang/llvm
I've just begun to mess around with clang and llvm, and I'm interested to hear if anyone has tried compiling PCSX2 using it.

C++ support isn't complete, but I think it's worth a try. Not entirely sure how to get it to create a Windows PE but that's a small problem compared to making the code compatible with clang. I can't submit code back to the project (non-compete agreement) but if I get something working it's certainly worth more exploration.

Suggestions/constructive criticisms are appreciated. I know it's likely to incur a severe performance penalty, but I hope with time the advantages of llvm shine through. Or maybe it'll never match the static compilation, I've never heard or read of a bt/recompiler done this way.

"This thread should be closed immediately, it causes parallel imagination and multiprocess hallucination" --ardhi
04-06-2009 10:43 PM
Find all posts by this user Quote this message in a reply
Zeydlitz Offline
Plugin Author
*****

Posts: 1.157
Joined: Dec 2008
Location:
Reputation: 4
Post: #2
RE: PCSX2 compilation using clang/llvm
Well, LLVM is gcc derivative, so only way to produce a windows binaries is mingw-linux path, which is far from being supported. And henceforth, I don't understand what goal do you assume to reach?
04-06-2009 11:10 PM
Find all posts by this user Quote this message in a reply
echosierra Offline
PCSX2 dev wannabe
***

Posts: 619
Joined: Dec 2008
Location:
Reputation: 0
Post: #3
RE: PCSX2 compilation using clang/llvm
I've found several documents about getting llvm to kick out a Windows executable, but I've never personally tried it. May be impossible to make it then work with the plugins, but as far as I know no one has tried it.

I'm hoping the llvm can (eventually) provide a speed boost to PCSX2. I've tried compiling a very primitive bt/recompiler and saw a nearly 100% increase in speed (to be fair it was a pretty crappy implementation), but I'll be satisfied with coming anywhere close to the current official builds in terms of speed.

I don't want to fork the project or anything, just see if this works. clang/llvm are under constant development, if it provides a benefit it would be a nice alternative in the future. AFAIK llvm can be configured to become a drop-in replacement for GCC, doing that could give a direct comparison.

All of this is useless until I get time to see if PCSX2 is compatible with clang, as C++ support is pretty shaky. This is as much about my education as it is about getting PCSX2 to run, as long as I'm learning about clang/llvm I may as well do useful work Tongue

"This thread should be closed immediately, it causes parallel imagination and multiprocess hallucination" --ardhi
04-06-2009 11:36 PM
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread



Current time: 05-23-2013, 01:16 AM

Contact Us | PCSX2 | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication

Powered By MyBB, © 2002-2013 MyBB Group.
Theme created by IncadudeF and modified by bositman