Runtime Assembler for C++
C++ C
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8652935 Apr 26, 2012


Runtime Assembler for C++

This library allows you to generate highly efficient code by assembling it runtime. It consists of an approxmiation of x86 assembly language which generated the corresponding IA32 instructions.


int testvalue = 21;

assembler a;
a.add_instruction(new Mov(EAX, imm<32>(testvalue)));
a.add_instruction(new Ret());

int result = (int);

This code creates an assembler, adds two instructions and calls the assembled code. After that, the result variable will be equals to 21.


rtasm depends on Boost ( and cppunit (


(C) Copyright 2005, 2012 Kristian Dupont Knudsen. MIT license -- see for details