Recompile a x86 code with LLVM to some faster one x86

Posted by osgx on Stack Overflow See other posts from Stack Overflow or by osgx
Published on 2011-01-08T22:23:52Z Indexed on 2011/01/08 22:53 UTC
Read the original article Hit count: 530

Filed under:
|
|

Hello

Is it possible to run LLVM compiler with input of x86 32bit code? There is a huge algorithm which I have no source code and I want to make it run faster on the same hardware. Can I translate it from x86 back to x86 with optimizations.

This Code runs a long time, so I want to do static recompilation of it. Also, I can do a runtime profile of it and give to LLVM hints, which branches are more probable.

The original Code is written for x86, and uses no SSE/MMX/SSE2. After recompilation It has a chances to use x86_64 and/or SSE3. Also, The code will be regenerated in more optimal way to hardware decoder.

Thanks.

© Stack Overflow or respective owner

Related posts about x86

Related posts about llvm