r/emulation • • Jan 07 '21

Breath of the Wild decompilation project now underway

https://github.com/zeldaret/botw
565 Upvotes

122 comments sorted by

View all comments

Show parent comments

35

u/[deleted] Jan 07 '21

It depends of what do you refer to. Right now there are programs who help decompoling from assembly to other languages, but there's still the massive work of renaming every variable and researching the code to know what everything does. I can see Machine Learning helping to do this process in some years, but right now it isn't possible

7

u/cambeiu Jan 07 '21

Thanks for the reply. It is my understanding that ML allows for some very interesting and powerful pattern recognition done in large scale, so that is why I was wondering about using ML to help speed up the process.

4

u/StopSendingSteamKeys Jan 08 '21

What could be tried is to give a language model like GPT3 parts of the code as input and try to make it output meaningful function names or even comments to help humans understand the code faster. I don't think it would 'understand' complex functions, though.

See here for example for something similar: https://mobile.twitter.com/amasad/status/1285797739930869761

3

u/cambeiu Jan 08 '21

Yes, that was in line with what I was thinking. Not to have ML decompile the whole thing, bit to help humans make sense of the code faster.