/* hsdis.c -- dump a range of addresses as native instructions Thisimplementsthepluginprotocolrequiredbythe HotSpotPrintAssemblyoption.
*/
#include <inttypes.h> #include <string.h>
#include <capstone.h>
#include"hsdis.h"
/* short names for stuff in hsdis.h */ typedef decode_instructions_event_callback_ftype event_callback_t; typedef decode_instructions_printf_callback_ftype printf_callback_t;
cs_insn *insn;
size_t count = cs_disasm(cs_handle, buffer, length, (uintptr_t) buffer, 0 , &insn); if (count) { for (unsignedint j = 0; j < count; j++) {
(*event_callback)(event_stream, "insn", (void*) insn[j].address);
print("%s\t\t%s", insn[j].mnemonic, insn[j].op_str);
(*event_callback)(event_stream, "/insn", (void*) (insn[j].address + insn[j].size)); if (newline) { /* follow each complete insn by a nice newline */
print("\n");
}
}
cs_free(insn, count);
}
cs_close(&cs_handle);
return NULL;
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.