search for: hexdisassembler

Displaying 4 results from an estimated 4 matches for "hexdisassembler".

Did you mean: eddisassembler
2009 Aug 18
2
[LLVMdev] X86 Disassembler
...r (llvm/ MC/MCDisassembler.h). The disassembler is documented in detail in – - lib/Target/X86/X86Disassembler.h (disassembler runtime) - utils/TableGen/X86DisassemblerEmitter.h (table emitter) – as well as in the individual files, functions, and classes. I implemented a use case in tools/llvm-mc/HexDisassembler.cpp, which implements an interactive disassembler for sequences of bytes entered in hex on standard input. Example output: – localhost:llvm spyffe$ ./Debug/bin/llvm-mc -disassemble 74 22 <-- user input … 1 instructions: 74 22 je 34 – The disassembler is currently fully implemented, and tes...
2009 Aug 22
0
[LLVMdev] X86 Disassembler
...std::string& triple) { Please mark this static so that you can shrink the anon namespace. + X86ATTAsmPrinter* asmPrinter = + dynamic_cast<X86ATTAsmPrinter*>(functionPass); Please don't use dynamic_cast: we're trying to eliminate RTTI a C cast should be fine. +int HexDisassembler::disassemble(const Target* target, + LineReader& reader) { ... + + if(targetName == "x86") { + disasm = new X86Disassembler::X86_32Disassembler(obj, logstream); + triple = "x86-apple-darwin"; + } + else if(targetName == &qu...
2009 Aug 18
0
[LLVMdev] X86 Disassembler
...he disassembler is documented in detail in > – > - lib/Target/X86/X86Disassembler.h (disassembler runtime) > - utils/TableGen/X86DisassemblerEmitter.h (table emitter) > – > as well as in the individual files, functions, and classes. > > I implemented a use case in tools/llvm-mc/HexDisassembler.cpp, which > implements an interactive disassembler for sequences of bytes > entered in hex on standard input. Example output: > – > localhost:llvm spyffe$ ./Debug/bin/llvm-mc -disassemble > 74 22 <-- user input > … > 1 instructions: > 74 22 je 34 > – > The di...
2009 Aug 19
3
[LLVMdev] X86 Disassembler
...eturn to "-1U" to make it explicit. -1 is a sentinel value. I changed readBytes to return an int and accept a uint64_t* that it fills in if it's non-NULL. > 6. The use of "#include <iostream>" is strictly forbidden. Please > remove it wherever you find it (HexDisassembler.h for one). Yeah, I guess those static initializers aren't so great. Removed. > 7. Look for opportunities to use the LLVM small container classes. > For instance, the "fOperands" ivar in RecognizableInsn. I looked at my uses of std::vector but they wouldn't really bene...