2014-03-02 10:20:37 +08:00
|
|
|
# This file contains all customized compile options for Capstone.
|
2014-03-04 18:20:28 +08:00
|
|
|
# Modify it before building step. Consult docs/README for details.
|
2014-03-02 10:20:37 +08:00
|
|
|
|
2014-02-22 23:26:27 +08:00
|
|
|
################################################################################
|
2014-02-28 11:05:01 +08:00
|
|
|
# Specify which archs you want to compile in. By default, we build all archs.
|
2014-01-13 11:18:45 +08:00
|
|
|
# DO NOT touch the line below.
|
2013-12-22 13:00:48 +08:00
|
|
|
CAPSTONE_ARCHS =
|
2013-12-22 00:49:16 +08:00
|
|
|
|
2014-01-13 11:18:45 +08:00
|
|
|
# Comment out the line below if you don't want to support ARM
|
2013-12-22 18:49:22 +08:00
|
|
|
CAPSTONE_ARCHS += arm
|
2013-12-22 13:00:48 +08:00
|
|
|
|
2014-01-13 11:18:45 +08:00
|
|
|
# Comment out the line below if you don't want to support ARM64
|
2013-12-22 18:49:22 +08:00
|
|
|
CAPSTONE_ARCHS += aarch64
|
2013-12-22 13:00:48 +08:00
|
|
|
|
2014-01-13 11:18:45 +08:00
|
|
|
# Comment out the line below if you don't want to support Mips
|
2013-12-22 18:49:22 +08:00
|
|
|
CAPSTONE_ARCHS += mips
|
2013-12-22 13:00:48 +08:00
|
|
|
|
2014-01-13 11:18:45 +08:00
|
|
|
# Comment out the line below if you don't want to support PowerPC
|
2013-12-28 14:12:54 +08:00
|
|
|
CAPSTONE_ARCHS += powerpc
|
2014-02-22 04:57:38 +08:00
|
|
|
|
2014-03-10 11:58:57 +08:00
|
|
|
# Comment out the line below if you don't want to support Sparc
|
|
|
|
CAPSTONE_ARCHS += sparc
|
|
|
|
|
2014-03-23 08:35:45 +08:00
|
|
|
# Comment out the line below if you don't want to support SystemZ
|
|
|
|
CAPSTONE_ARCHS += systemz
|
|
|
|
|
2014-02-23 00:47:38 +08:00
|
|
|
# Comment out the line below if you don't want to support Intel (16/32/64-bit)
|
2014-02-22 04:57:38 +08:00
|
|
|
CAPSTONE_ARCHS += x86
|
2014-02-23 00:47:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
2014-03-01 23:24:09 +08:00
|
|
|
# Comment out the line below ('USE_SYS_DYN_MEM = yes'), or change it to
|
2014-03-07 21:46:45 +08:00
|
|
|
# 'USE_SYS_DYN_MEM = no' if do NOT use malloc/calloc/realloc/free/vsnprintf()
|
2014-03-01 23:24:09 +08:00
|
|
|
# provided by system for internal dynamic memory management.
|
2014-02-23 00:47:38 +08:00
|
|
|
#
|
2014-03-07 21:46:45 +08:00
|
|
|
# NOTE: in that case, specify your own malloc/calloc/realloc/free/vsnprintf()
|
2014-03-01 23:24:09 +08:00
|
|
|
# functions in your program via API cs_option(), using CS_OPT_MEM option type.
|
2014-03-02 10:20:37 +08:00
|
|
|
|
2014-02-23 00:47:38 +08:00
|
|
|
USE_SYS_DYN_MEM = yes
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Change 'CAPSTONE_DIET = no' to 'CAPSTONE_DIET = yes' to make the library
|
|
|
|
# more compact: use less memory & smaller in binary size.
|
2014-02-24 22:13:29 +08:00
|
|
|
# This setup will remove the @mnemonic & @op_str data, plus semantic information
|
2014-03-04 18:20:28 +08:00
|
|
|
# such as @regs_read/write & @group. The amount of binary size reduced is
|
|
|
|
# up to 50% in some individual archs.
|
2014-02-23 00:47:38 +08:00
|
|
|
#
|
|
|
|
# NOTE: we still keep all those related fileds @mnemonic, @op_str, @regs_read,
|
2014-02-24 22:13:29 +08:00
|
|
|
# @regs_write, @groups, etc in fields in cs_insn structure regardless, but they
|
2014-03-04 18:20:28 +08:00
|
|
|
# will not be updated (i.e empty), thus become irrelevant.
|
2014-03-02 10:20:37 +08:00
|
|
|
|
2014-02-23 00:47:38 +08:00
|
|
|
CAPSTONE_DIET = no
|
2014-03-25 23:20:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Change 'CAPSTONE_X86_COMPACT = no' to 'CAPSTONE_X86_COMPACT = yes' to remove
|
|
|
|
# non-critical instruction sets of X86, making the binary size smaller by ~50%.
|
|
|
|
# This is desired in special cases, such as OS kernel, where these kind of
|
|
|
|
# instructions are not used.
|
|
|
|
#
|
|
|
|
# The list of instruction sets to be removed includes:
|
|
|
|
# - FPU
|
|
|
|
# - MMX, SSE, SIMD, 3DNow, AVX, FMA, XOP
|
|
|
|
# - VMX, SVM
|
|
|
|
# - TSX
|
|
|
|
#
|
|
|
|
# Due to this removal, the related instructions are nolonger supported.
|
|
|
|
#
|
|
|
|
# By default, Capstone is compiled with 'CAPSTONE_X86_COMPACT = no'
|
|
|
|
|
|
|
|
CAPSTONE_X86_COMPACT = no
|