Fizzi
Smash Ace
Disclaimer: I'm not 100% sure what I'm doing or if any of this makes sense but I figured I'd bring it up in case it sparked some ideas in people more experienced than me.
I'm not sure if anyone has attempted to do this before but I thought it would be an interesting experiment so I looked into trying to decompile melee. There's a few options for decompiling PowerPC instructions and I ended up finding one that looked easy to use and pretty recent, found here: https://retdec.com/ .
I converted the Start.dol file to a Start.elf and fed it into the website. The website ended up crapping out at some point so I put in a support request. The team that runs the site actually responded to me with the decompiled code which is the file I linked to at the bottom of this post.
I'm not completely sure what the possibilities could be with this file. Perhaps melee's code could be run in some fashion on a different CPU architecture? Perhaps it can be used by developers to aid in understanding complex parts of the code? (there are comments in the C code that refer back to the corresponding assembly instructions)
I'm looking to promote discussion with this post, even if that discussion is simply "this is completely useless".
Decompiled C File:
http://www.mediafire.com/download/7afxvm4rukuxgfw/DecompiledMelee1_02.zip
EDIT: It does look like the code might not be complete? This message can be found in multiple places where I think code was supposed to be: "// Detected a possible infinite recursion (goto support failed); quitting.."
I'm not sure if anyone has attempted to do this before but I thought it would be an interesting experiment so I looked into trying to decompile melee. There's a few options for decompiling PowerPC instructions and I ended up finding one that looked easy to use and pretty recent, found here: https://retdec.com/ .
I converted the Start.dol file to a Start.elf and fed it into the website. The website ended up crapping out at some point so I put in a support request. The team that runs the site actually responded to me with the decompiled code which is the file I linked to at the bottom of this post.
I'm not completely sure what the possibilities could be with this file. Perhaps melee's code could be run in some fashion on a different CPU architecture? Perhaps it can be used by developers to aid in understanding complex parts of the code? (there are comments in the C code that refer back to the corresponding assembly instructions)
I'm looking to promote discussion with this post, even if that discussion is simply "this is completely useless".
Decompiled C File:
http://www.mediafire.com/download/7afxvm4rukuxgfw/DecompiledMelee1_02.zip
EDIT: It does look like the code might not be complete? This message can be found in multiple places where I think code was supposed to be: "// Detected a possible infinite recursion (goto support failed); quitting.."
Last edited: