avast / retdec

RetDec is a retargetable machine-code decompiler based on LLVM.
https://retdec.com/
MIT License
8.01k stars 946 forks source link

Add support for m68k architecture #494

Open philpem opened 5 years ago

philpem commented 5 years ago

The REcon 2018 slide deck suggests that some of the underlying tools behind Retdec support the Motorola M68k (aka 68000, CPU32) architecture.

What would be required to add support for M68K to Retdec?

s3rvac commented 5 years ago

Hi. Thank you for your interest in RetDec. To get a sense of what needs to be done to add support for a new architecture, you can take a look at #9 (Adding support for x86-64).

@PeterMatula I think it would be useful to write a list of all the required actions to add support for a new architecture to our wiki as this might be useful for many people in the future. What do you think?

philpem commented 5 years ago

I've forked Retdec and started adding M68K support on a branch: https://github.com/philpem/retdec/tree/add-m68k-support

It looks like the next step would be to write some code to convert 68K binaries into LLVM IR using Capstone.

PeterMatula commented 5 years ago

I will put together some wiki page on this topic. In the meantime, you can take a look at these two repositories that are adding support for ARM64:

PeterMatula commented 5 years ago

The promised wiki page: https://github.com/avast-tl/retdec/wiki/How-to-add-support-for-a-new-architecture