Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!jarthur!rspangle From: rspangle@jarthur.Claremont.EDU (Randy Spangler) Newsgroups: comp.windows.ms Subject: Re: Win3 8086 Virtual Machine, again Message-ID: <7469@jarthur.Claremont.EDU> Date: 13 Jun 90 22:17:59 GMT References: <9983@rouge.usl.edu> Organization: Harvey Mudd College, Claremont, CA 91711 Lines: 48 In article <9983@rouge.usl.edu> pcb@gator.cacs.usl.edu (Peter C. Bahrs) writes: > >Well I solved the problem (I think). For Edix and Procomm .exe's I ran >exehdr. I think I got this with DOS or MS C compiler. It listed >the amout of memory needed, static I think. I added 5 to this and >used it in the PIF settings. FINE.!! I pulled up 5 edix and 3 procomm >just to see. > >But I think this logic does not hold for files with overlays???? >Quick C listed only 5k needed which definitely did not work. > >I don't believe Edix and Procomm use overlays. > >Is this the best approach to determine a PIF amount setting? > To determine the appropriate amount of memory for a PIF file, I usually start by pulling up the full program in an exclusive command processor with a full 640KB memory. Then I shell out from the program to DOS (most programs can do this - I'm sure Procomm can) and use MAPMEM, a program from TSRCOM29.ZIP (available at fine ftp sites like Simtel20) to determine the amount of free memory in the shell. You could also use chkdsk to determine this number. The difference between this number and 640K is how much memory the program requires. I usually add 16-32K just to be safe. Example: (Telix) 1. Run exclusive command processor PIF file set to 640K 2. From exclusive command processor, run Telix 3. From Telix, shell to DOS memory free = 384K 640K - 384K = 256K required 256K + 32K 'safety margin' = 288K desired -- -------------------------------------------------------------------------- | Randy Spangler | The less things change, the | | rspangle@jarthur.claremont.edu | more they remain the same | --------------------------------------------------------------------------