PCSX2 Documentation/Chroot and 64-bit Linux: Difference between revisions

no edit summary
(Created page with "More and more linux users have 64 bit distributions. The purpose of this wiki page is to explain the current situation and possible solutions. It is only a DRAFT for the mome...")
 
No edit summary
Line 1: Line 1:
''It is only a DRAFT for the moment.''
More and more linux users have 64 bit distributions. The purpose of this wiki page is to explain the current situation and possible solutions.
More and more linux users have 64 bit distributions. The purpose of this wiki page is to explain the current situation and possible solutions.
Status updates on the following distributions are welcome (as are others we may have overlooked): Debian / Ubuntu / Fedora / Gentoo / ArchLinux / Mandriva / Opensuse / Slackware.


It is only a DRAFT for the moment.
Status updates on the following distributions are welcome (as are others we may have overlooked): Debian / Ubuntu / Fedora / Gentoo / ArchLinux / Mandriva / Opensuse / Slackware.


Introduction
==Introduction==
Pcsx2 does not support running as a 64 bit application for various reasons.
Pcsx2 does not support running as a 64 bit application for various reasons.
The code is architecture dependent (for performance reasons).
The code is architecture dependent (for performance reasons).
Line 11: Line 11:
No gain in performance, actually it could be slower.
No gain in performance, actually it could be slower.
Lack of programmers both willing and able to write and maintain the 64-bit code and keep it up to date with the 32-bit code. (Which has been largely rewritten since the old 64 bit code was removed.)
Lack of programmers both willing and able to write and maintain the 64-bit code and keep it up to date with the 32-bit code. (Which has been largely rewritten since the old 64 bit code was removed.)
...
 
While it is possible to run a 32 bit program on a 64 bit operating system, you have to have 32 bit versions of all the libraries it uses as well. With the libraries Pcsx2 uses, this can be impractical, which is why we generally recommend a 32 bit chroot.
While it is possible to run a 32 bit program on a 64 bit operating system, you have to have 32 bit versions of all the libraries it uses as well. With the libraries Pcsx2 uses, this can be impractical, which is why we generally recommend a 32 bit chroot.
TO DO: Talk about what a 32 bit chroot is. (Well, it's really a full 32 bit copy of Linux sitting in a folder on your hard drive, which Linux can cleverly start up and run programs from, but detail might be nice to have here...)
TO DO: Talk about what a 32 bit chroot is. (Well, it's really a full 32 bit copy of Linux sitting in a folder on your hard drive, which Linux can cleverly start up and run programs from, but detail might be nice to have here...)
Pcsx2 is not 64 bit compatible by design
Pcsx2 is not 64 bit compatible by design
Line 28: Line 29:
Another reason is portability. While the code for the program itself may not be portable, it would in theory be possible to write multiple generators for different processors. We may not be doing that currently, but we don't have to rule that out for the future. That is the beauty of virtual machines, and why you can run Java programs pretty much anywhere, for example.
Another reason is portability. While the code for the program itself may not be portable, it would in theory be possible to write multiple generators for different processors. We may not be doing that currently, but we don't have to rule that out for the future. That is the beauty of virtual machines, and why you can run Java programs pretty much anywhere, for example.
For more information, you may want to look up virtual machines in google or wikipedia. Other topics of interest might be Infocom, and their "Z-Machine" virtual machine, code optimization, portability, well, a lot of things, really. Talking about it too much would be beyond the scope of this document, though, however interesting...
For more information, you may want to look up virtual machines in google or wikipedia. Other topics of interest might be Infocom, and their "Z-Machine" virtual machine, code optimization, portability, well, a lot of things, really. Talking about it too much would be beyond the scope of this document, though, however interesting...
Chroot environment
 
==Chroot environment==
The recommended way except on Ubuntu/Debian. Chroot was superseeded by "multiarch".
The recommended way except on Ubuntu/Debian. Chroot was superseeded by "multiarch".
Standard library The least problematic way to install pcsx2 on a 64 bit system is to create a 32 bits chroot. Each distribution has a specific way, largely because what you really are doing is installing a small install of that distribution in a folder.
Standard library The least problematic way to install pcsx2 on a 64 bit system is to create a 32 bits chroot. Each distribution has a specific way, largely because what you really are doing is installing a small install of that distribution in a folder.
ninja
782

edits