Annotation of 41BSD/libc/crt/mcount.s, revision 1.1

1.1     ! root        1: # count subroutine called during profiling
        !             2: 
        !             3: .globl mcount
        !             4: .comm  countbase,4
        !             5: 
        !             6: mcount:
        !             7:        movl    (r0),r1
        !             8:        beql    init
        !             9: incr:
        !            10:        incl    (r1)
        !            11: return:
        !            12:        rsb
        !            13: init:
        !            14:        movl    countbase,r1
        !            15:        beql    return
        !            16:        addl2   $8,countbase
        !            17:        movl    (sp),(r1)+
        !            18:        movl    r1,(r0)
        !            19:        brb     incr

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.