|
Casis777 User Level: 11 Posts: 2/19 EXP: 5143 For next: 842 Since: 10-10-11 Since last post: 8.9 years Last activity: 8.6 years |
|
| There seems to be a problem with the way the mips-gcc compiler is compiling my code (and others) into MIPS assembly to be translated into a gameshark code for the nemu emulator. Here is what I have done...
*I'm running on Windows Vista 32-bit *I'm running the MinGW compiler *I have MSYS and all Paths correctly configured *I'm using the MIPS-GCC compiler and other tools provided in this tutorial: link *I have libraries from that google codesite downloaded *I am modifying/using this linker script just to generate hacks: link *I am modifying/using this linker script to generate overlays (or actors): link Now, I have programmed a few basic hacks but none of them seem to be compiling correctly. Finally, I decided to try and compile a hack I know should run. Of course... it failed. Then, I decided to take spinout's bombarrow hack and compile that. Now, he had a compiled GS code of what it should look like, so when I compared the GS code that I had with his, I had finally come to the conclusion that it was a problem with the compiler or the linker (probably the compiler). Frauber, I know that you've compiled hacks made in C before, could you possibly know what the problem is? By the way, here is the GS code I got after compiling the bombarrows hack and here is spinout's original GS code... As you can see, they begin to differ around the first couple of GS code lines. This leads me to believe it's either the compiler's, linker's, or objcopy's fault. Also, here is the source code for spinout's bombarrows for others to compile. Should I try using this linker script instead? It seems to be exactly the same as the original linker script I was using except that it has fewer comments. And what about trying a different compiler? I found another mips-gcc compiler that was packaged with Galatea. I know that this topic has to do with a OoT debug hack, but I also wish to know what is the problem so that way I may generate hacks for SM64 |

















