_getpid X
1: / pid = getpid(); 2: 3: .globl _getpid 4: 5: _getpid: 6: mov r5,-(sp) 7: mov sp,r5 8: sys getpid 9: mov (sp)+,r5 10: rts pc