FIX: F1002, R6000 During Compile with Very Large Array

ID: Q86069


The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 4.1, 5.0, 5.1
  • Microsoft FORTRAN for OS/2, versions 4.1, 5.0, 5.1


SYMPTOMS

A program compiled with Microsoft FORTRAN version 4.1, 5.0, or 5.1 that attempts to declare an extremely large array may generate the following errors during compilation:

fatal error F1002: out of heap space
run-time error R6000
- stack overflow


RESOLUTION

Static data larger than 244 segments in size cannot be linked. The compiler is failing with data so large it will never link successfully. Decrease the size of the array dimensions.


STATUS

Microsoft has confirmed this to be a problem in FORTRAN versions 4.1, 5.0, and 5.1 for MS-DOS and OS/2. This problem was corrected in FORTRAN PowerStation, version 1.0.


MORE INFORMATION

The following code demonstrates the problem. Note that if another 0 (zero) is added to the code below, the program compiles without an error but the executable file does not reflect the size of the array defined in the program. If the dimension of the array exceeds the limit of an INTEGER variable, an INTEGER overflow error is generated.

Sample Code


      PARAMETER (n=100000000)
      INTEGER*4 LargeArray(n)
      LargeArray (n) = n
      END 

Additional query words: 4.10 5.00 5.10 buglist4.10 buglist5.00 buglist5.10 fixlist1.00

Keywords :
Version : :4.1,5.0,5.1
Platform :
Issue type :


Last Reviewed: November 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.