* [TUHS] Unix Reverse Engineering
@ 2025-05-12 7:00 Thalia Archibald via TUHS
0 siblings, 0 replies; only message in thread
From: Thalia Archibald via TUHS @ 2025-05-12 7:00 UTC (permalink / raw)
To: tuhs
Hello everyone,
I'm working on building a decompiler from PDP-11 assembly to C to ease studying
old pre-C Unix sources. To start, I'm translating V5 `as` to period-idiomatic C
and have finished most of pass 1. Then I'll port it to Rust with a design better
suited to static analysis, while keeping exact fidelity to the original. I'll
do the same for `cc` and `ld`, after.
I stumbled upon Warren's disaout[0] today, which made me wonder:
What tools have people for reverse engineering Unix assembly sources or a.out
binaries? Things like disassemblers or decompilers.
I assume there's some versions of programs which are now only extant as
binaries? Are there enough such binaries that were written in C to warrant
writing a decompiler that understands the specific codegen of `cc` to improve
accuracy? For now, I'm focusing on decompiling hand-written assembly, but I'm
keeping this case in mind.
Thanks!
Thalia
[0]: https://github.com/DoctorWkt/unix-jun72/tree/master/tools/disaout
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-12 7:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-12 7:00 [TUHS] Unix Reverse Engineering Thalia Archibald via TUHS
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).