update instructions in COMPILE*

This commit is contained in:
Nguyen Anh Quynh 2014-05-15 11:06:43 +08:00
parent 7bab8dc12e
commit 01f48397dc
2 changed files with 15 additions and 10 deletions

View File

@ -22,6 +22,9 @@ Capstone requires no prerequisite packages, so it is easy to compile & install.
- CAPSTONE_DIET: use this to make the output binaries more compact.
- CAPSTONE_X86_REDUCE: another option to make X86 binary smaller.
By default, Capstone use system dynamic memory management, and both DIET and X86_REDUCE
modes are disable.
To avoid editing config.mk for these customization, can pass their values to
make.sh, as followings.
@ -29,7 +32,6 @@ Capstone requires no prerequisite packages, so it is easy to compile & install.
NOTE: on commandline, put these values in front of ./make.sh, not after it.
See default values of above options in config.mk
For each option, refer to docs/README for more details.

View File

@ -8,18 +8,20 @@ Open the Visual Studio solution msvc/capstone.sln and see the instructions below
(0) Tailor Capstone to your need.
Out of 7 archtitectures supported by Capstone (Arm, Arm64, Mips, PPC, Sparc,
SystemZ & X86), if you just need several selected archs, choose which ones you
want to compile in by directly editing the project "capstone-lib" from the
Visual Studio solution "capstone-msvc.sln" before going to next steps.
SystemZ & X86), if you just need several selected archs, choose the ones you
want to compile in by opening Visual Studio solution "msvc\capstone.sln", then
directly editing the projects "capstone_static" & "capstone_dll" for static
and dynamic libraries, respectively. This must be done before going to the
next steps.
In VisualStudio interface, modify the preprocessor definitions via
"Project Properties" -> "Configuration Propertis" -> "C/C++" -> "Preprocessor"
to customize Capstone library, as followings.
- CAPSTONE_HAS_ARM: support ARM. Delete this to remove ARM support.
- CAPSTONE_HAS_ARM64: support ARM64. Delete this to remove ARM support.
- CAPSTONE_HAS_MIPS: support Mips. Delete this to remove ARM support.
- CAPSTONE_HAS_PPC: support PPC. Delete this to remove ARM support.
- CAPSTONE_HAS_ARM64: support ARM64. Delete this to remove ARM64 support.
- CAPSTONE_HAS_MIPS: support Mips. Delete this to remove Mips support.
- CAPSTONE_HAS_PPC: support PPC. Delete this to remove PPC support.
- CAPSTONE_HAS_SPARC: support Sparc. Delete this to remove Sparc support.
- CAPSTONE_HAS_SYSZ: support SystemZ. Delete this to remove SystemZ support.
- CAPSTONE_HAS_X86: support X86. Delete this to remove X86 support.
@ -30,10 +32,11 @@ Open the Visual Studio solution msvc/capstone.sln and see the instructions below
Besides, Capstone also allows some more customization via following macros.
- CAPSTONE_USE_SYS_DYN_MEM: delete this to use your own dynamic memory management.
- CAPSTONE_DIET_NO: rename this to CAPSTONE_DIET to make the binaries more compact.
- CAPSTONE_X86_REDUCE_NO: rename this to CAPSTONE_X86_REDUCE to make X86 binary smaller.
- CAPSTONE_DIET_NO: rename this to "CAPSTONE_DIET" to make the binaries more compact.
- CAPSTONE_X86_REDUCE_NO: rename this to "CAPSTONE_X86_REDUCE" to make X86 binary smaller.
By default, both DIET & X86_REDUCE modes are disable.
By default, Capstone use system dynamic memory management, and both DIET and X86_REDUCE
modes are disable.
For each option, refer to docs/README for more details.