mirror of
https://github.com/herumi/xbyak
synced 2024-11-20 16:06:14 -07:00
27 lines
434 B
C++
27 lines
434 B
C++
#include <stdio.h>
|
|
#include <xbyak/xbyak.h>
|
|
|
|
using namespace Xbyak;
|
|
|
|
struct Code : Xbyak::CodeGenerator {
|
|
Code()
|
|
: Xbyak::CodeGenerator(4096*8)
|
|
{
|
|
setDefaultEncodingAVX10(AVX10v2Encoding);
|
|
#include "tmp.cpp"
|
|
}
|
|
};
|
|
|
|
int main()
|
|
try
|
|
{
|
|
Code c;
|
|
FILE *fp = fopen("bin", "wb");
|
|
if (fp) {
|
|
fwrite(c.getCode(), 1, c.getSize(), fp);
|
|
fclose(fp);
|
|
}
|
|
} catch (std::exception& e) {
|
|
printf("ERR %s\n", e.what());
|
|
return 1;
|
|
}
|