home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l291 / 5.ddi / FILEHAND.DO$ / FILEHAND.bin
Encoding:
Text File  |  1991-04-25  |  1.9 KB  |  51 lines

  1. Increasing File Handles for the FORTRAN 5.10 Run-Time Libraries
  2. ---------------------------------------------------------------
  3.  
  4. There are two methods available for increasing the number of file handles
  5. available to a program.  One method is to modify and assemble the files
  6. CRT0DAT.ASM and UNIT.ASM as described in the header of the file UNIT.ASM.
  7. The Microsoft Macro Assembler (MASM) is required to assemble these two files. 
  8. Use the following commands to assemble the files with MASM 5.0 or 5.1:
  9.  
  10. MASM /Mx UNIT.ASM
  11.  
  12. MASM /Mx /Dmem_L CRT0DAT.ASM
  13. or,
  14. MASM /Mx /Dmem_M CRT0DAT.ASM
  15.  
  16. where L and M are for Large and Medium model run-time libraries. If you
  17. are using MASM 6.00, rename the file CMACROS.NEW to replace the file
  18. CMACROS.INC.  Use the following commands to assemble the files:
  19.  
  20. MASM /Mx UNIT.ASM
  21.  
  22. MASM /Mx /Dmem_L /DMS_STARTUP CRT0DAT.ASM
  23. or,
  24. MASM /Mx /Dmem_M /DMS_STARTUP CRT0DAT.ASM
  25.  
  26.  
  27. The other method is to use the pre-compiled modules provided in this
  28. directory tree. The files CRT0DAT.ASM and UNIT.ASM have been compiled
  29. with 64 handles as opposed to the normal 20 handles.
  30. The modules provided are:
  31.  
  32. UNIT.OBJ                - used with all models/operating systems
  33.  
  34. OS2\CRT0DATL.OBJ        - large model, OS/2 EXE
  35. OS2\CRT0DATM.OBJ        - medium model, OS/2 EXE
  36. DOS\CRT0DATL.OBJ        - large model, DOS EXE
  37. DOS\CRT0DATM.OBJ        - medium model, DOS EXE
  38. WINDOWS\CRT0DATL.OBJ    - large model, Windows EXE
  39. WINDOWS\CRT0DATD.OBJ    - large model, Windows DLL
  40.  
  41. To use these object files, place them on the .OBJ line of the linker
  42. and specify the /NOE switch when linking.  You may also use the LIB
  43. utility to replace the existing modules in your run-time libraries
  44. with the objects above.  For example:
  45.  
  46.   LIB LLIBFOR7.LIB -+ UNIT.OBJ - CRT0DAT.OBJ + CRT0DATL.OBJ;
  47.  
  48. would replace the appropriate modules in LLIBFOR7.LIB.
  49.  
  50.                 --- End ---
  51.