What is the best way to convert some assembly code to LLVM IR? Code doesn't contain any jumps/calls/returns. Only arithmetical and stack operations. I have tried McSema but I couldn't get it to work. Is there any simpler option?

  • My suggestion would be to look at RetDec and at the thesis/paper they link from their website. That project is using LLVM IR in order to create a decompiler for a few platforms. However, the LLVM code base they're using is fairly old by now. – 0xC0000022L Nov 6 at 22:39
  • Just to double check -- are you interested in converting assembly to LLVM IR or disassembling a binary file into LLVM IR? – zxxc Nov 9 at 12:38
  • Fragment of assembly to LLVM IR – kozera Nov 9 at 12:45
  • There is a bunch listed here. (check them all!) – user202729 Nov 10 at 16:35

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.