UNIX PC COFF Disassembler (Part 1 of 2)

Richard Foulk richard at uhccux.uhcc.hawaii.edu
Thu Sep 29 22:53:42 AEST 1988


Thanks for getting the ball rolling Lenny!

} Warning the program is awefully slow, and it does create large output files. 

I prof'ed unc and got this:

Name     %Time Seconds Cumsecs  #Calls   msec/call
read      48.0   61.82   61.82
write     25.2   32.51   94.33
lseek     15.3   19.77  114.09
_doprnt    2.5    3.23  117.33
...

I suspect that the reason it is so slow is because the ld library
does lseeks and reads for each reference or symbol (major yuk!).

So either some disk cacheing needs to be done, or more simply
and probably more effective, rewrite the ld routines so that
ldopen() reads the whole binary into memory to start with.

On a machine with 2 megs or more that should work okay.

Is anyone planning on doing the work to make it emit Motorola mnemonics?
I don't have much free time, but it's certainly a worthy project.

Richard



More information about the Unix-pc.sources mailing list