TCC for x86-64 では
code = malloc(0x1000); data = malloc(0x1000); /* output compiled results into code and data... */ buf = malloc(0x2000); memcpy(buf, code, 0x1000); memcpy(buf + 0x1000, data, 0x1000); relocate(buf); get_main_from_code(buf)(argc, argv);
って感じでいったん packing する感じに…