>>32898530>RS is currently being decompiled using the same compiler Gamefreak usedA compiler doesn't (usually) decompile. Furthermore, GameFreak used the compiler in nintendo's SDK, which is difficult and illegal to obtain, as well as distribute binaries built with it.
>and the guys doing it are making sure the decompiled code produces an output identical to the binary in the games. From what I understand it should produce something very close to the original source, if not identical.Again, the decompiled source will never be identical to the original source, because of the simple fact that one of the compiler's jobs is putting all the bits and pieces together, stripping whatever is unnecessary and optimizing/changing things where it can for it to run faster. What you have with pokeruby is source as close to the resulting binary as you can get, but pretty far from the actual source code. This contains weird constructs not written by actual humans (eg. written by the optimizer), and is probably structured in a very different way from the original source. You can't really say anything about "amateur level mistakes" when it might've just been a faulty compiler, an optimization (aka it's actually safe & correct) or a hack (written by the reverse engineers) to make sure the compiled output is identical. And don't forget the compiler used to compile the reversed source does optimizations as well, which have a high probability of being different, and have to be accounted for in the reversed source.