1#define XBYAK_NO_OP_NAMES
17#ifdef XBYAK_USE_MMAP_ALLOCATOR
18 puts(
"use Allocator with mmap");
20 puts(
"use Allocator with posix_memalign");
23 std::vector<Code*> v(
N);
24 for (
int i = 0; i <
N; i++) {
28 for (
int i = 0; i <
N; i++) {
29 sum += v[i]->getCode<int (*)()>()();
31 for (
int i = 0; i <
N; i++) {
34 printf(
"sum=%lld\n", sum);
35}
catch (std::exception& e) {
36 printf(
"ERR %s\n", e.what());
void mov(const Operand ®1, const Operand ®2)
LOGGING_API void printf(Category category, const char *format,...)
Xbyak ; JIT assembler for x86(IA32)/x64 by C++.