search for: llvmdisasminstruct

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

2011 Dec 19
3
[LLVMdev] Disassembly arbitrary machine-code byte arrays
...ed by the PC parameter. If a valid * instruction can be disassembled, its string is returned indirectly in * OutString whose size is specified in the parameter OutStringSize. This * function returns the number of bytes in the instruction or zero if there was * no valid instruction. */ size_t LLVMDisasmInstruction(LLVMDisasmContextRef DC, uint8_t *Bytes, uint64_t BytesSize, uint64_t PC, char *OutString, size_t OutStringSize); This is used in darwin's otool(1) which is an objdump(1) like tool. It ends up in the libLTO shared library. Kev On...
2011 Dec 20
0
[LLVMdev] Disassembly arbitrary machine-code byte arrays
...valid >  * instruction can be disassembled, its string is returned indirectly in >  * OutString whose size is specified in the parameter OutStringSize.  This >  * function returns the number of bytes in the instruction or zero if there was >  * no valid instruction. >  */ > size_t LLVMDisasmInstruction(LLVMDisasmContextRef DC, uint8_t *Bytes, >                             uint64_t BytesSize, uint64_t PC, >                             char *OutString, size_t OutStringSize); > > This is used in darwin's otool(1) which is an objdump(1) like tool.  It ends up in the libLTO shared l...
2011 Dec 19
0
[LLVMdev] Disassembly arbitrary machine-code byte arrays
Hi Aiden, The easiest thing I can do is to point you to the source of the "llvm-mc" tool, which does exactly what you ask in its "-disassemble" mode. The code is rather small, so it should be easy to work out. tools/llvm-mc Cheers, James -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Aidan Steele Sent:
2011 Dec 19
2
[LLVMdev] Disassembly arbitrary machine-code byte arrays
Hi, My apologies if this appears to be a very trivial question -- I have tried to solve this on my own and I am stuck. Any assistance that could be provided would be immensely appreciated. What is the absolute bare minimum that I need to do to disassemble an array of, say, ARM machine code bytes? Or an array of Thumb machine code bytes? For example, I might have an array of unsigned chars -- how