5#define XBYAK_NO_OP_NAMES
15 printf(
"ptr=%p, %p\n", getCode(),
buf);
18 mov(eax, ptr [
esp + 4]);
20#elif defined(XBYAK64_WIN)
21 lea(rax, ptr [rcx + rdx]);
23 lea(rax, ptr [rdi + rsi]);
29inline int add(
int a,
int b)
37 for (
int i = 0; i < 10; i++) {
40 printf(
"sum=%d\n", sum);
static bool protect(const void *addr, size_t size, bool canExec)
static const Reg32 esp(Operand::ESP)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Xbyak ; JIT assembler for x86(IA32)/x64 by C++.
void lea(const Reg ®, const Address &addr)
c_gkp_out sizeof(template))