132{
134 bool phase = argc > 0 && strcmp(*
argv,
"1") == 0;
135 bool isJIT = (argc > 1);
136 fprintf(stderr, "phase:%c %s\n", phase ? '1' : '2', isJIT ? "jit" : "asm");
137 if (phase) {
138 fprintf(stderr, "32bit reg\n");
139 static const char reg32Tbl[][5] = {
140 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi",
141#ifdef XBYAK64
142 "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d",
143#endif
144 };
146 } else {
147#ifdef XBYAK64
148 fprintf(stderr, "64bit reg\n");
149 static const char reg64Tbl[][5] = {
150 "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
151 };
153#endif
154 }
155}
void genAddress(bool isJIT, const char regTbl[][5], size_t regTblNum)