|
From: Josef W. <Jos...@gm...> - 2004-03-14 00:15:02
|
Am Friday 05 March 2004 14:48 schrieb sun...@te...: > I expect that this will give me the number of instrumented functions inside > the stack, but sometimes I get more exits than entrances. > > Can anyone explain why this happens? Hi, CALL and RET instructions doesn't have to appear as pairs. This is not only true in handwritten assembler, but in compiler produced code, too. Think about longjmp, dynamic binding or exception handling. You could have CALL next next: POP xxx to get the PC into xxx or PUSH xxx RET to simulate a JMP. Besides, you can leave a function by adjusting the SP only. Josef |