Richard Henderson
|
22ead3e0bf
|
Constify backend data (#1040)
* Constify string literals
Use -Wwrite-strings to force string literals to be of
type "const char[]", then fix up all warning fallout.
* Constify common infrastructure
Step one in allowing backend data to be readonly.
Minimal changes to backends for now; just set all pointers
in common structs that aren't modified to const.
* Constify AArch64 backend
Section size changes within libcapstone.so are
-.rodata 602587
-.data.rel.ro 228416
-.data 1003746
+.rodata 769051
+.data.rel.ro 241120
+.data 824578
* Constify ARM backend
Section size changes within libcapstone.so are
-.rodata 769051
-.data.rel.ro 241120
-.data 824578
+.rodata 959835
+.data.rel.ro 245120
+.data 629506
* Constify Mips backend
Section size changes within libcapstone.so are
-.rodata 959835
-.data.rel.ro 245120
-.data 629506
+.rodata 1069851
+.data.rel.ro 256416
+.data 508194
* Constify PowerPC backend
Section size changes within libcapstone.so are
-.rodata 1069851
-.data.rel.ro 256416
-.data 508194
+.rodata 1142715
+.data.rel.ro 272224
+.data 419490
* Constify Sparc backend
Section size changes within libcapstone.so are
-.rodata 1142715
-.data.rel.ro 272224
-.data 419490
+.rodata 1175227
+.data.rel.ro 277536
+.data 381666
* Constify SystemZ backend
Section size changes within libcapstone.so are
-.rodata 1175227
-.data.rel.ro 277536
-.data 381666
+.rodata 1221883
+.data.rel.ro 278016
+.data 334498
* Constify X86 backend
Section size changes within libcapstone.so are
-.rodata 1221883
-.data.rel.ro 278016
-.data 334498
+.rodata 1533531
+.data.rel.ro 281184
+.data 19714
* Constify XCore backend
Section size changes within libcapstone.so are
-.rodata 1533531
-.data.rel.ro 281184
-.data 19714
+.rodata 1553026
+.data.rel.ro 281280
+.data 40
|
2017-10-22 08:45:40 +08:00 |
reverser
|
bcf09f440d
|
Add support to embed Capstone into OS X kernel extensions.
|
2015-04-10 23:28:12 +08:00 |
Nguyen Anh Quynh
|
4b6b15fcb1
|
fix more MSVC warnings
|
2014-08-26 15:57:04 +08:00 |
Nguyen Anh Quynh
|
aaddb25453
|
no need to zeroout insn_cache in make_id2insn()
|
2014-06-17 13:32:37 +08:00 |
Nguyen Anh Quynh
|
fec5539f3a
|
use calloc() to zerout insn_cache in make_id2insn. this makes sure uninitialized data zero
|
2014-06-16 17:31:43 +08:00 |
Nguyen Anh Quynh
|
12f93cba5e
|
use malloc() rather than calloc() for handle->insn_cache in make_id2insn()
|
2014-06-09 07:16:55 +07:00 |
Nguyen Anh Quynh
|
583baba8c4
|
remove more dead code
|
2014-05-28 12:57:59 +08:00 |
Nguyen Anh Quynh
|
19146e91a3
|
replace strcasecmp() with strcmp(). this also simlifies MSVC support a bit
|
2014-05-28 12:41:31 +08:00 |
Nguyen Anh Quynh
|
6023ef7843
|
Disassembler -> Disassembly
|
2014-04-29 11:21:04 +08:00 |
Nguyen Anh Quynh
|
7f6db24a8f
|
remove now redundant insn_reverse_id() after alias handling simplifications
|
2014-02-18 17:58:47 +08:00 |
Alex Ionescu
|
46018db884
|
Initial set of changes to support building with MSVC 2013. Right now there's a bunch fo assumptions in the .vcxproj file and some things are not as clean as they should be, but it does build a full build and works (at least the x86 side). The point of this initial checkpoint is to make sure that nothing breaks on the GCC side, that everyone is ok with the changes to the source (or if better fixes/typing can be done).
|
2014-01-22 09:45:00 -08:00 |
Nguyen Anh Quynh
|
a9ffb440f8
|
replace strdup() with our cs_strdup(), which call cs_mem_malloc() internally
|
2014-01-15 18:27:01 +08:00 |
Nguyen Anh Quynh
|
a8eb7a5ca5
|
rename memory function pointer types to have cs_ prefix. also rename internal function pointers my_* to have cs_mem_ prefix - suggested by Pancake
|
2014-01-11 12:55:31 +08:00 |
Nguyen Anh Quynh
|
0b93e19460
|
fix off-by-one error in make_id2insn. patch by Dang Hoang Vu
|
2014-01-06 11:41:01 +08:00 |
Nguyen Anh Quynh
|
24bf0d9079
|
add new option CS_OPT_MEM for cs_option(): this enable user-defined dynamic memory management. idea proposed by Pancake
|
2014-01-05 11:19:04 +08:00 |
Nguyen Anh Quynh
|
f1d489b949
|
ppc: support details information
|
2014-01-05 00:00:05 +08:00 |
Nguyen Anh Quynh
|
b265406960
|
cache insns for fast lookup in mapping.c. based on the idea of Dang Hoang Vu
|
2014-01-03 17:08:58 +08:00 |
Nguyen Anh Quynh
|
18103e4a22
|
size down insn_map structructure by reducing the size of some fields. this alone makes lib binary size 2.6MB smaller
|
2013-12-20 17:35:15 +08:00 |
Nguyen Anh Quynh
|
bed90914e2
|
x86: calculate op_size properly in special cases regarding rax, eax, ax, al registers
|
2013-12-13 18:28:38 +08:00 |
pancake
|
f0e4eed89d
|
Use const on all read-only buffers
|
2013-12-11 22:14:42 +01:00 |
Nguyen Anh Quynh
|
f35e2ad35c
|
add @regs_read_count, @regs_write_count, @groups_count to @cs_insn. bump API to 1.4
|
2013-12-03 11:10:26 +08:00 |
Nguyen Anh Quynh
|
26ee41aa67
|
initial import
|
2013-11-27 12:11:31 +08:00 |