manxflood58 – http://ballinderrygac.com/
The purpose of this publish is to doc how coding agents have and haven’t helped with the decompilation course of. While much has been written about LLMs, far less has been written about decompilation,1 so I’m including another knowledge level. A few classes might apply past the N64. If you’ve got strategies to enhance the workflow, please let me know! What is matching decompilation? Snowboard Kids 2 was written in C and compiled to MIPS machine code. The matching decompilation process entails analysing the MIPS meeting, inferring its behaviour, and writing C that, when compiled with the identical toolchain and settings, reproduces the precise code: similar registers, delay slots, and instruction order.After all, this still doesn’t tell us what the operate is for in the broader codebase. 58164 to a minimal of 4? Matching the bytes, nevertheless, is only the first step. A real match requires understanding the function’s intent through naming conventions, cross-references, and evaluation of how the decision websites behave. Matches also vary in high quality. An excellent match is extra than just C code that compiles to the best bytes.4 It ought to appear to be one thing an N64-period developer would plausibly have written: simple, idiomatic C management move and sensible information buildings.5 Prioritising plausibility pays off: later functions naturally share helpers and struct layouts, and also you avoid artefacts that solely exist to set off some quirk of the compiler.Why do a matching decompilation at all? It deepens understanding of the engine, opens the door to new content material, offers a strong base for tooling and, most significantly, it’s fun! 2. Strive to produce matching code. 3. If I get stuck, import the function regionally and usher in agents. 4. If the matching percentage reaches 100%, the operate is taken into account decompiled and work can stop. For comfort, it also begins a new Claude instance with directions to read the aforementioned file and ‘use thinking’. You will also get a score, with a rating of 100% indicating a perfect match.2. Look for an space the place the management flow and directions don’t match. Consider what the unique builders probably supposed to put in writing given the function’s broader goal. Print out an explanation for why they don’t match. 5. If your doable solution did not enhance the match percentage, use instruments to analyse what went flawed and summarise your principle. Then apply this principle to enhancing the match in your next try. The purpose of this workflow is to encourage the agent to identify and take a look at small, incremental improvements. Claude would otherwise try to repair all the things directly, only to be confounded by the drop in match fee, which had too many doable causes to diagnose successfully.Equally, every try is made in a new file in order that we will easily recuperate good matches. We wish to avoid conditions where an agent achieves an excellent match however subsequently edits the file and degrades its quality. The path of attempts can also be a useful reference for the agent. The requests in Step 2 and Step 5 for a proof are supposed to encourage the agent to (respectively) anticipate the effect of its changes and mirror on their outcomes.Disassembly: dump a binary to MIPS assembly. Object file diff: disassemble and diff two object recordsdata with register-identify normalisation. Line mapping: best-effort mapping from disassembly lines to C strains (via the candidate’s debug symbols). Most of these utilities have been initially scaffolded by Claude after which customised for this challenge. They’re all available on Github. Agents excel at bootstrapping one-off CLI instruments: setup is fast, and ongoing maintenance is minimal because the agent can regenerate or patch them as needed.My workflow remains to be human-pushed, with brokers performing as research assistants. I choose functions and attempt to decompile them first. A part of that is emotional. It’s more satisfying to determine issues out yourself than to stare at a coding agent. Even when you needed to, relying solely on an agent won’t get you far. We’re a good distance from ‘vibe coding’ being viable for matching decompilation. Brokers are great at spotting patterns and sometimes make surprising leaps. Where quay hu ee88 see 2,000 traces of noise, Claude may spot an audio processing routine. They’re also affected person enough to try dozens of variations to see what nudges the match. Agents method issues in distinct ways and sometimes produce different solutions.I frequently run Claude and Codex in parallel to widen the search space and diversify ideas. Agents usually stumble on basic arithmetic and bookkeeping that a human would do rapidly. For example, they struggle to compute the correct byte offset of a struct subject. They also repeat small syntactic errors regardless of prompting. Claude is instructed to make use of C89 (i.e., the 1989 normal of C), nevertheless it usually forgets this, which leads to trivial syntax errors.
manxflood58's resumes
No matching resumes found.


