ZSNES on mac [not a request :)]
Moderator: ZSNES Mods
ZSNES on mac [not a request :)]
I have decided to look into the possiblity of compiling the linux source code on mac osx.
As all know gcc is capable of cross-compilation, and therefore I will try and do some reserch and see if it can just compile x86 assembly for the ppc. (Slashdot had something... but the link is dead).
Another option is porting it from x86 to ppc assembly or C.
If anyone has any help they would like to share that would be appreciated.
As all know gcc is capable of cross-compilation, and therefore I will try and do some reserch and see if it can just compile x86 assembly for the ppc. (Slashdot had something... but the link is dead).
Another option is porting it from x86 to ppc assembly or C.
If anyone has any help they would like to share that would be appreciated.
-
- Dark Wind
- Posts: 1271
- Joined: Thu Jul 29, 2004 8:58 pm
- Location: Texas
- Contact:
Re: ZSNES on mac [not a request :)]
Cross-compilation is having, say, a machine running x86 Linux compile binaries for a Mac OS X machine. GCC can't do what you want; you'd have to write a auto-translating version of NASM. Good luck with that.jkenney wrote:I have decided to look into the possiblity of compiling the linux source code on mac osx.
As all know gcc is capable of cross-compilation, and therefore I will try and do some reserch and see if it can just compile x86 assembly for the ppc. (Slashdot had something... but the link is dead).
Another option is porting it from x86 to ppc assembly or C.
If anyone has any help they would like to share that would be appreciated.
As for porting the assembly, sure, it can be done. If you know both x86 assembly and PPC assembly, feel free to give it a shot.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Personally, it would seem that if you were actually going to do the kind of monumental, inconceivable task of porting all that code to another architecture, you might as well try to re-write the emulator in C instead. It would be approximately the same amount of work, and you'd likely achieve compatibility with many architectures simultaneously.
-
- Dark Wind
- Posts: 1271
- Joined: Thu Jul 29, 2004 8:58 pm
- Location: Texas
- Contact:
It seems that way.
Though seriously assembly is just another language albiet more hardware specific.
Although a headache its not impossible to compile x86 assembly for another architecture.
Well now i have to look through each assembly file and convert it. If anyone else here knows ppc and x86 assembly then help would be appreciated There are a lot of files.
On the plus side, i got configure and make to work it compiles but then stops once it realizes that the object files are x86. But theoreticly that means once i convert the assembly it should work.
Though seriously assembly is just another language albiet more hardware specific.
Although a headache its not impossible to compile x86 assembly for another architecture.
Well now i have to look through each assembly file and convert it. If anyone else here knows ppc and x86 assembly then help would be appreciated There are a lot of files.
On the plus side, i got configure and make to work it compiles but then stops once it realizes that the object files are x86. But theoreticly that means once i convert the assembly it should work.
-
- Dark Wind
- Posts: 1271
- Joined: Thu Jul 29, 2004 8:58 pm
- Location: Texas
- Contact:
-
- ZSNES Shake Shake Prinny
- Posts: 5632
- Joined: Wed Jul 28, 2004 4:15 pm
- Location: PAL50, dood !
FYI, total size of all ASM to convert is close to 4.5 megs.
Noteworthy, zsnes/src/cpu holds ~1.24 megs and zsnes/src/video holds ~1.67 megs.
Noteworthy, zsnes/src/cpu holds ~1.24 megs and zsnes/src/video holds ~1.67 megs.
皆黙って俺について来い!!
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Code: Select all
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)