PRB: F1901 "Program Too Large for Memory" Compilation Error

Last reviewed: July 18, 1995
Article ID: Q47500
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS and OS/2, versions 5.0, 5.1

SYMPTOMS

An attempt to compile an application fails and the compiler generates the following message:

       F1901: program too large for memory

CAUSE

The combination of heap space and stack space required to compile the program is too large for the memory available in the computer.

RESOLUTION

To address this situation, compile the application with the high-capacity compiler F1L.EXE. Modify the compiler command line to specify the /B1 option. F1L.EXE is an alternate first pass for the compiler that places the symbol table into the FAR HEAP. If F1L is unable to process a source module, decompose the source file into two or more pieces, compile each separately, and link the application together.

MORE INFORMATION

FORTRAN version 5.0 distributes F1L.EXE on disk 13, the High Capacity Compiler Disk.

The following compiler command line demonstrates using the high- capacity FORTRAN compiler:

   FL /B1 C:\FORTRAN\BIN\F1L.EXE MYAPP.FOR

To make the high-capacity compiler the default, rename F1L.EXE as F1.EXE.

By default, FORTRAN version 5.1 installs the F1L.EXE file in the C:\FORTRAN\BINB directory. The switch should read:

  FL /B1 C:\FORTRAN\BINB\F1L.EXE MYAPP.FOR

For more information on F1L.EXE, see the README.DOC file in the Microsoft FORTRAN distribution.


Additional reference words: 5.00 5.10
KBCategory: kbtool kberrmsg kbprb
KBSubcategory: FLIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 18, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.