From 92b4c38fa5f137cbcf835ad359bed8711c1c9c51 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 19 Jul 2011 11:31:57 -0700 Subject: Added comment about how to disassemble JIT output. --- upb/pb/decoder_x86.dasc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'upb/pb/decoder_x86.dasc') diff --git a/upb/pb/decoder_x86.dasc b/upb/pb/decoder_x86.dasc index 19043c6..20c20d7 100644 --- a/upb/pb/decoder_x86.dasc +++ b/upb/pb/decoder_x86.dasc @@ -682,6 +682,8 @@ void upb_decoder_makejit(upb_decoder *d) { mprotect(d->jit_code, d->jit_size, PROT_EXEC | PROT_READ); + // View with: objdump -M intel -D -b binary -mi386 -Mx86-64 /tmp/machine-code + // Or: ndisasm -b 64 /tmp/machine-code FILE *f = fopen("/tmp/machine-code", "wb"); fwrite(d->jit_code, d->jit_size, 1, f); fclose(f); -- cgit v1.2.3