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

Current time: 11-21-2009, 04:07 PM Hello There, Guest! (Login — Register)

..:: PCSX2 Forums ::.. / PCSX2 Discussion and Support / General Discussion / Compiling pcsx2 svn in a 64 bit system.

1 user browsing this thread: (0 members, and 1 guest).

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Compiling pcsx2 svn in a 64 bit system.
Author Message
cman Offline
Newbie

Posts: 9
Joined: Dec 2008
Location:
Post: #1
Compiling pcsx2 svn in a 64 bit system.
Hi, i thought it is impossible to make pcsx2 to work in my ubuntu 64-bit system but searching a little i read something about the possibility of compiling a 32-bit app in a 64 bit system by using the -m32 option of gcc.. also i know that there are ways to run 32 bit app in a 64 bit linux system.. the problem is that i don't know exactly how to do this 2 things, can anybody help me? i need the basic steps, my CPU is a core 2 duo.
Thanks!.
02-28-2009 11:48 AM
Find all posts by this user Quote this message in a reply
Krakatos Offline
Pcsx2 betatester/Mod
*******

Posts: 1.202
Joined: Nov 2008
Location: Italy
Post: #2
RE: Compiling pcsx2 svn in a 64 bit system.
You need to set up a 32bits chroot. Anyway, read and post here please http://forums.pcsx2.net/thread-2373.html
02-28-2009 11:50 AM
Find all posts by this user Quote this message in a reply
arcum42 Offline
PCSX2 coder
******

Posts: 308
Joined: Dec 2008
Location: Las Vegas, NV
Post: #3
RE: Compiling pcsx2 svn in a 64 bit system.
And, for reference, I've looked at the -m32 option. It works for C++ files, but the compilation fails the moment it encounters one of several .S files in the project, which are straight assembly.

If those assembly files were inlined in the C code like the Windows equivalent, -m32 might be an option, and it's possible there are ways around this that I am not aware of.

The reason they aren't inlined is because having the assembly in question inlined would require the function to be naked (starting with __declspec(naked)), and the gcc programmers refuse to implement nudity in x86. Basically, gcc has an enforced dress code.

So, yes, you'd need to set up a 32 bit chroot. By it's nature, the steps to do so are distribution specific, because when you create a chroot, you're basically installing Linux in minature in a folder on your system (only a 32 bit version, in this case). Some distributions in Linux make it easier then others.

The process should be easy to find with google; I know I've seen instructions for Gentoo and Ubuntu in searches before.
(This post was last modified: 03-01-2009 03:46 AM by arcum42. Edit Reason: )
02-28-2009 12:08 PM
Find all posts by this user Quote this message in a reply
Raghar Offline
Newbie

Posts: 19
Joined: Jan 2009
Location:
Post: #4
RE: Compiling pcsx2 svn in a 64 bit system.
(02-28-2009 12:08 PM)arcum42 Wrote:  And, for reference, I've looked at the -m32 option. It works for C++ files, but the compilation fails the moment it encounters one of several .S files in the project, which are straight assembly.
Have you tried to find a switch for the assembler? Otherwise I'd suggest to contact developers.
03-01-2009 03:27 AM
Find all posts by this user Quote this message in a reply
Air Offline
PCSX2 Programmer
******

Posts: 994
Joined: Nov 2008
Location: Meshoppen, PA
Post: #5
RE: Compiling pcsx2 svn in a 64 bit system.
The problem isn't even the .S files so much.

For 64 bit to work, you need a completely new JIT recompiler. Yes, Pcsx2 has a JIT recompiler inside, and yes it generates fancified x86-translated versions of your favorite game's executing code, while you play. Simply flipping a compiler switch does nothing for this. It's 10-15 thousand lines of code, most of which needs at least slight modifications to work at all in an x64 environment, and some of which needs fairly extensive modifications to have a reasonable performance profile.

Jake Stine (Air) - Programmer - Pcsx2 Development Team
(This post was last modified: 03-01-2009 04:27 AM by Air. Edit Reason: )
03-01-2009 04:26 AM
Find all posts by this user Quote this message in a reply
arcum42 Offline
PCSX2 coder
******

Posts: 308
Joined: Dec 2008
Location: Las Vegas, NV
Post: #6
RE: Compiling pcsx2 svn in a 64 bit system.
Oh, I wasn't talking about 64 bit working, Jake.

I was just talking about forcing gcc to compile pcsx2 as 32 bits inside a 64 bit environment; crosscompiling, basically. For that, the .S files are a sticking point, though I'm sure there are ways around that (Which I don't know).
03-01-2009 10:35 AM
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
Forum Jump:


Current time: 11-21-2009, 04:07 PM

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

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