Re: after SIMD implementation, is it still a RISC?
- From: Terje Mathisen <terje.mathisen@xxxxxxxxxxxxx>
- Date: Mon, 08 Sep 2008 13:08:42 +0200
Chris Gray wrote:
nmm1@xxxxxxxxxxxxx (Nick Maclaren) writes:
Dubiously. Having written those for a systems with and without it,
the extra difficulty is not significant.
Varying length ops can be a bit of nuisance when debugging, though. When
working with a program that has received an exception, I fairly often want
to see a handfull of instructions before the faulting one. If instructions
are fixed length, that is easy. If instructions are varying length, that
is harder. I usually don't want to disassemble the entire function - that
can yield hundreds of lines of output, and the stuff I want is somewhere
in the middle. Picking an address less than PC and starting there is error
prone, especially with x86's prefix bytes.
One solution would be for the debugger's disassembler to do the work for
me - start at the beginning of the function and silently parse instructions
until it gets to the one containing my given start address, then show me
Reverse engineering disassemblers, like the popular OllyDbg, seems to simply start at the closest known entrypoint, or it can disassemble the last 100 bytes or so. This is sufficient to regain sync for pretty much every single x86 program that hasn't been specially constructed to use only overlapping multi-byte opcodes.
those. Even that doesn't work if people are obfuscating code by putting
non-code in the middle of their functions, but since I'm generally debugging
my own code, that isn't an issue.
Using Olly (or other debuggers) to trace virus/worm code I've had to patch around code sequences designed to make debugging hard, like using the stack pointer (in 16-bit mode) as a general pointer register, decrypting code with no valid stack present.
Terje
--
- <Terje.Mathisen@xxxxxxxxxxxxx>
"almost all programming can be viewed as an exercise in caching"
.
- References:
- Re: after SIMD implementation, is it still a RISC?
- From: Quadibloc
- Re: after SIMD implementation, is it still a RISC?
- From: Anton Ertl
- Re: after SIMD implementation, is it still a RISC?
- From: Ken Hagan
- Re: after SIMD implementation, is it still a RISC?
- From: Stephen Fuld
- Re: after SIMD implementation, is it still a RISC?
- From: Nick Maclaren
- Re: after SIMD implementation, is it still a RISC?
- From: Chris Gray
- Re: after SIMD implementation, is it still a RISC?
- Prev by Date: Re: after SIMD implementation, is it still a RISC?
- Next by Date: Re: after SIMD implementation, is it still a RISC?
- Previous by thread: Re: after SIMD implementation, is it still a RISC?
- Next by thread: Re: after SIMD implementation, is it still a RISC?
- Index(es):
Relevant Pages
|
Loading