> very few programs care if getcallerpc is broken,
> and it is never a bottleneck. if it is really bothering
> you, the c function i posted is certainly correct and
> avoids writing assembly.
I'll keep that in mind, thank you.
I'm now getting to the 386 syscalls. The following comment in the
mkfile needs addressing. Suggestions?
# _SEEK is broken, but we currently don't use it.
# GCC uses eax,edx to return a vlong
#
# if(~ $i _SEEK) {
# echo 'CMPL AX,$-1
# JNE 4(PC)
# MOVL a+0(FP),CX
# MOVL AX,0(CX)
# MOVL AX,4(CX)'
# }
Much appreciated. How much of the p9p work am I duplicating right
now?
++L