Path: utzoo!utgpu!water!watmath!uunet!labrea!rutgers!gatech!cwjcc!tut.cis.ohio-state.edu!mailrus!ames!killer!gladys!skeeve!islenet!uhccux!richard From: richard@uhccux.uhcc.hawaii.edu (Richard Foulk) Newsgroups: unix-pc.sources Subject: Re: UNIX PC COFF Disassembler (Part 1 of 2) Keywords: unc, m68k disassembler Message-ID: <2443@uhccux.uhcc.hawaii.edu> Date: 29 Sep 88 12:53:42 GMT References: <511@icus.islp.ny.us> Reply-To: richard@uhccux.UUCP (Richard Foulk) Distribution: unix-pc Organization: University of Hawaii Lines: 26 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