debugging - Logging the Behavior of a Binary? -
i want figure out instructions executed differently when command-line flag passed program on windows, of have compiled (and optimized) binary, no debug symbols or of sort. know difference not more handful of instructions.
how go figuring out? there techniques logging instructions program executes on period of time?
(note not involve system calls, flag being set in loop because of command-line flag.)
you can use amd's codeanalyst this, using instruction based profiling method. has api can within app trigger events can monitor specific regions. can use disassembler, understand, using word 'instruction' mean both high level code operations , low level machine code(who execution cannot change, emitted code compiler can change execution of high level operations).
Comments
Post a Comment