I am looking for a JIT compiler or a small compiler library that can be embedded in my program. I indent to use it to compile dynamically generated code that perform complex number arithmetics. The generated code are very simple in structure: no loops, no conditionals, but they can be quite long (a few MB when compiled by GCC). The performance of the resulting machine code is important, while I don't really care about the speed of compilation itself. Which JIT compiler is best for my purpose? Thanks!
Detailed requirements
- Support double precision complex number arithmetics
- Support basic optimization
- Support many CPUs (x86 and x86-64 at least)
- Make use of SSE on supported CPUs
- Support stack or a large set of registers for local variables
- ANSI-C or C++ interface
- Cross platform (mainly Linux, Unix)