| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
#include <stdio.h> |
| 15 |
#include <capstone/capstone.h> |
| 16 |
|
| 17 |
int main() |
| 18 |
{ |
| 19 |
if (cs_support(CS_ARCH_X86)) { |
| 20 |
printf("x86=1 "); |
| 21 |
} |
| 22 |
if (cs_support(CS_ARCH_ARM)) { |
| 23 |
printf("arm=1 "); |
| 24 |
} |
| 25 |
if (cs_support(CS_ARCH_ARM64)) { |
| 26 |
printf("arm64=1 "); |
| 27 |
} |
| 28 |
if (cs_support(CS_ARCH_MIPS)) { |
| 29 |
printf("mips=1 "); |
| 30 |
} |
| 31 |
if (cs_support(CS_ARCH_PPC)) { |
| 32 |
printf("ppc=1 "); |
| 33 |
} |
| 34 |
if (cs_support(CS_ARCH_SPARC)) { |
| 35 |
printf("sparc=1 "); |
| 36 |
} |
| 37 |
if (cs_support(CS_ARCH_SYSZ)) { |
| 38 |
printf("sysz=1 "); |
| 39 |
} |
| 40 |
if (cs_support(CS_ARCH_XCORE)) { |
| 41 |
printf("xcore=1 "); |
| 42 |
} |
| 43 |
if (cs_support(CS_ARCH_M68K)) { |
| 44 |
printf("m68k=1 "); |
| 45 |
} |
| 46 |
if (cs_support(CS_ARCH_TMS320C64X)) { |
| 47 |
printf("tms320c64x=1 "); |
| 48 |
} |
| 49 |
if (cs_support(CS_ARCH_M680X)) { |
| 50 |
printf("m680x=1 "); |
| 51 |
} |
| 52 |
if (cs_support(CS_ARCH_EVM)) { |
| 53 |
printf("evm=1 "); |
| 54 |
} |
| 55 |
if (cs_support(CS_ARCH_WASM)) { |
| 56 |
printf("wasm=1 "); |
| 57 |
} |
| 58 |
if (cs_support(CS_ARCH_MOS65XX)) { |
| 59 |
printf("mos65xx=1 "); |
| 60 |
} |
| 61 |
if (cs_support(CS_ARCH_BPF)) { |
| 62 |
printf("bpf=1 "); |
| 63 |
} |
| 64 |
if (cs_support(CS_ARCH_RISCV)) { |
| 65 |
printf("riscv=1 "); |
| 66 |
} |
| 67 |
if (cs_support(CS_SUPPORT_DIET)) { |
| 68 |
printf("diet=1 "); |
| 69 |
} |
| 70 |
if (cs_support(CS_SUPPORT_X86_REDUCE)) { |
| 71 |
printf("x86_reduce=1 "); |
| 72 |
} |
| 73 |
if (cs_support(CS_ARCH_TRICORE)) { |
| 74 |
printf("tricore=1 "); |
| 75 |
} |
| 76 |
printf("\n"); |
| 77 |
|
| 78 |
return 0; |
| 79 |
} |