Using and porting GNU lightning
GNU lightning is a library that generates assembly language code at run-time; it is very fast, making it ideal for Just-In-Time compilers, and it abstracts over the target CPU, as it exposes to the clients a standardized RISC instruction set inspired by the MIPS and SPARC chips.
GNU lightning is usable in complex code generation tasks. The available backends cover the i686, x86_64, mips, arm, powerpc, sparc, ia64, hppa, aarch64, s390x and alpha architectures.
GNU lightning Resources
Development code can be checked out from git.savannah.gnu.org.