Nguyen Anh Quynh | fc83a43 | 2014-02-22 23:26:27 +0800 | [diff] [blame] | 1 | ################################################################################ |
Nguyen Anh Quynh | 7e5a6b5 | 2014-02-23 00:47:38 +0800 | [diff] [blame] | 2 | # Specify which archs you want to compile in. |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 3 | # DO NOT touch the line below. |
Nguyen Anh Quynh | 5219f64 | 2013-12-22 13:00:48 +0800 | [diff] [blame] | 4 | CAPSTONE_ARCHS = |
danghvu | 6f52bf9 | 2013-12-19 22:43:01 -0600 | [diff] [blame] | 5 | |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 6 | # Comment out the line below if you don't want to support ARM |
Nguyen Anh Quynh | f954f87 | 2013-12-22 18:49:22 +0800 | [diff] [blame] | 7 | CAPSTONE_ARCHS += arm |
Nguyen Anh Quynh | 5219f64 | 2013-12-22 13:00:48 +0800 | [diff] [blame] | 8 | |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 9 | # Comment out the line below if you don't want to support ARM64 |
Nguyen Anh Quynh | f954f87 | 2013-12-22 18:49:22 +0800 | [diff] [blame] | 10 | CAPSTONE_ARCHS += aarch64 |
Nguyen Anh Quynh | 5219f64 | 2013-12-22 13:00:48 +0800 | [diff] [blame] | 11 | |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 12 | # Comment out the line below if you don't want to support Mips |
Nguyen Anh Quynh | f954f87 | 2013-12-22 18:49:22 +0800 | [diff] [blame] | 13 | CAPSTONE_ARCHS += mips |
Nguyen Anh Quynh | 5219f64 | 2013-12-22 13:00:48 +0800 | [diff] [blame] | 14 | |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 15 | # Comment out the line below if you don't want to support PowerPC |
Nguyen Anh Quynh | 0f9cb0f | 2013-12-28 14:12:54 +0800 | [diff] [blame] | 16 | CAPSTONE_ARCHS += powerpc |
Nguyen Anh Quynh | f6060b8 | 2014-02-22 04:57:38 +0800 | [diff] [blame] | 17 | |
Nguyen Anh Quynh | 7e5a6b5 | 2014-02-23 00:47:38 +0800 | [diff] [blame] | 18 | # Comment out the line below if you don't want to support Intel (16/32/64-bit) |
Nguyen Anh Quynh | f6060b8 | 2014-02-22 04:57:38 +0800 | [diff] [blame] | 19 | CAPSTONE_ARCHS += x86 |
Nguyen Anh Quynh | 7e5a6b5 | 2014-02-23 00:47:38 +0800 | [diff] [blame] | 20 | |
| 21 | |
| 22 | ################################################################################ |
| 23 | # Comment out the line below ('USE_SYS_DYN_MEM = yes') if you do not want to use |
| 24 | # system's malloc()/calloc()/realloc()/free() for internal dynamic memory management. |
| 25 | # |
| 26 | # NOTE: in that case, your program must specify your own malloc/calloc/realloc/free |
| 27 | # functions via API cs_option(), using CS_OPT_MEM option type. |
| 28 | USE_SYS_DYN_MEM = yes |
| 29 | |
| 30 | |
| 31 | ################################################################################ |
| 32 | # Change 'CAPSTONE_DIET = no' to 'CAPSTONE_DIET = yes' to make the library |
| 33 | # more compact: use less memory & smaller in binary size. |
Nguyen Anh Quynh | d5ca145 | 2014-02-24 22:13:29 +0800 | [diff] [blame] | 34 | # This setup will remove the @mnemonic & @op_str data, plus semantic information |
| 35 | # such as @regs_read/write & @group. The amount of reduced size in the binary |
| 36 | # is up to 50% in some individual archs. |
Nguyen Anh Quynh | 7e5a6b5 | 2014-02-23 00:47:38 +0800 | [diff] [blame] | 37 | # |
| 38 | # NOTE: we still keep all those related fileds @mnemonic, @op_str, @regs_read, |
Nguyen Anh Quynh | d5ca145 | 2014-02-24 22:13:29 +0800 | [diff] [blame] | 39 | # @regs_write, @groups, etc in fields in cs_insn structure regardless, but they |
| 40 | # will not be updated (i.e empty) at the output of related APIs. |
Nguyen Anh Quynh | 7e5a6b5 | 2014-02-23 00:47:38 +0800 | [diff] [blame] | 41 | CAPSTONE_DIET = no |