.file "eeprof-1.c" .text .align 2 .globl foo .type foo, @function foo: link.w %a6,#0 cmp.l #foo,last_fn_entered jbeq .L1 jbsr abort .align 2 .L1: unlk %a6 rts .size foo, .-foo .align 2 .type foo2, @function foo2: link.w %a6,#0 moveq.l #1,%d0 cmp.l entry_calls,%d0 jbne .L11 tst.l exit_calls jbeq .L12 .L11: jbsr abort .align 2 .L12: cmp.l #foo2,last_fn_entered jbne .L11 jbsr foo moveq.l #2,%d0 cmp.l entry_calls,%d0 jbne .L11 moveq.l #1,%d0 cmp.l exit_calls,%d0 jbne .L11 cmp.l #foo,last_fn_entered jbne .L11 cmp.l #foo,last_fn_exited jbne .L11 unlk %a6 rts .size foo2, .-foo2 .align 2 .globl nfoo .type nfoo, @function nfoo: link.w %a6,#0 moveq.l #2,%d0 cmp.l entry_calls,%d0 jbne .L22 cmp.l exit_calls,%d0 jbeq .L23 .L22: jbsr abort .align 2 .L23: move.l last_fn_entered,%a0 cmp.l #foo,%a0 jbne .L22 cmp.l #foo2,last_fn_exited jbne .L22 jbsr (%a0) moveq.l #3,%d0 cmp.l entry_calls,%d0 jbne .L22 cmp.l exit_calls,%d0 jbne .L22 cmp.l #foo,last_fn_entered jbne .L22 cmp.l #foo,last_fn_exited jbne .L22 unlk %a6 rts .size nfoo, .-nfoo .align 2 .globl main .type main, @function main: link.w %a6,#0 tst.l entry_calls jbne .L34 tst.l exit_calls jbeq .L35 .L34: jbsr abort .align 2 .L35: jbsr foo2 moveq.l #2,%d0 cmp.l entry_calls,%d0 jbne .L34 cmp.l exit_calls,%d0 jbne .L34 cmp.l #foo,last_fn_entered jbne .L34 cmp.l #foo2,last_fn_exited jbne .L34 jbsr nfoo moveq.l #3,%d0 cmp.l entry_calls,%d0 jbne .L34 cmp.l exit_calls,%d0 jbne .L34 cmp.l #foo,last_fn_entered jbne .L34 clr.l %d0 unlk %a6 rts .size main, .-main .align 2 .globl __cyg_profile_func_enter .type __cyg_profile_func_enter, @function __cyg_profile_func_enter: link.w %a6,#0 addq.l #1,entry_calls move.l 8(%a6),last_fn_entered unlk %a6 rts .size __cyg_profile_func_enter, .-__cyg_profile_func_enter .align 2 .globl __cyg_profile_func_exit .type __cyg_profile_func_exit, @function __cyg_profile_func_exit: link.w %a6,#0 addq.l #1,exit_calls move.l 8(%a6),last_fn_exited unlk %a6 rts .size __cyg_profile_func_exit, .-__cyg_profile_func_exit .comm entry_calls,4,2 .comm exit_calls,4,2 .comm last_fn_entered,4,2 .comm last_fn_exited,4,2 .ident "GCC: (GNU) 3.3.2"