FIX: R6000 During Compile with F1L.EXE, Large DATA

Last reviewed: September 16, 1997
Article ID: Q76949
5.10 | 5.10 MS-DOS | OS/2 kbtool kberrmsg kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft FORTRAN for MS-DOS, version 5.1
  • Microsoft FORTRAN for OS/2, version 5.1

SYMPTOMS

When compiling a program containing a large DATA statement with Microsoft FORTRAN version 5.1 under MS-DOS, the high capacity compiler may generate the following error:

   run-time error R6000
   - stack overflow

When compiling the same program under OS/2 with FORTRAN 5.1, the high capacity compiler may generate a protection violation during the first pass of the compiler.

RESOLUTION

The error "F1901: Program too Large for Memory" is generated on this code if the high capacity compiler is not used. Reducing the size of the DATA statement within the program eliminates this problem.

STATUS

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

MORE INFORMATION

The following code reproduces the problem:

Sample code

      DIMENSION    F55LV(25,13)

      DATA ( ( F55LV(I,J), J = 1, 13 ), I = 1, 25 ) /
C
     &     92., 98., 100.6, 101.5, 101.9, 102., 102.1, 102.2, 102.3,
     &     102.4, 102.5, 102.5, 102.5,
C
     &     79.7, 85.9, 91., 93.4, 94.6, 95., 95.6, 95.9, 96., 96.1,
     &     96.3, 96.5, 96.5,
C
     &     72.7, 79.,  84.8, 87.8, 89.4, 90.4, 91.2, 91.8, 92., 92.2,
     &     92.5, 92.5, 92.5,
C
     &     67.8, 73.8, 80.,  83.3, 85.4, 86.8, 87.7, 88.3, 88.9, 89.2,
     &     89.9, 90.1, 90.2,
C
     &     64.,  70.,  76.,  79.6, 82.,  83.7,  85., 85.8, 86.3, 86.7,
     &     87.6, 88.,  88.1,
C
     &     52.,  58.,  64.,  67.6, 70.,  72.,  73.9, 75.4, 76.7, 77.9,
     &     80.2, 81.3, 81.9,
C
     &     39.4, 45.5, 51.5, 55.,  57.6, 59.6, 61.7, 63.3, 64.9, 66.2,
     &     70.,  72.4, 74.2,
C
     &     31.,  37.,  43.,  46.7, 49.,  51.,  53.2, 55.1, 57., 58.5,
     &     62.6, 65.,  66.5,
C
     &     25.3, 29.5, 35.5, 39.,  41.5, 43.6, 45.9, 47.9, 50.,  51.5,
     &     55.4, 57.8, 59.6,
C
     &     20.3, 23.5, 28.8, 32.,  34.4, 36.7, 39.1, 41.5, 43.5, 45.,
     &     48.9, 51.2, 53.,
C
     &     16.2, 18.1, 22.,  25.3, 27.7, 29.9, 32.,  34.4, 36.7, 38.2,
     &     42.5, 44.9, 46.4,
C
     &     12.8, 14.5, 17.1, 19.8, 22.,  23.9, 26.,  28.3, 30.7, 32.4,
     &     36.9, 39.1, 40.8,
C
     &      9.8, 11.,  13.4, 15.2, 17.,  18.8, 21.,  23.2, 25.2, 27.,
     &     31.,  33.2, 35.,
C
     &      6.9,  8.2, 10.2, 11.8, 13.1, 14.7, 16.8, 18.8, 20.4, 22.,
     &     25.7, 28.1, 30.,
C
     &      4.,   5.5,  7.4,  8.9, 10.1, 11.5, 13.1, 14.9, 16.,  17.3,
     &     21.,  23.5, 25.5,
C
     &      1.5,  2.9,  4.8,  6.,   7.2,  8.4,  9.9, 11.1, 12.5, 13.7,
     &     17.1, 19.8, 21.8,
C
     &     -1.1,   .3,  2.2,  3.7,  4.8,  5.7,  7.,   8.,   9.1, 10.1,
     &     13.6, 16.1, 18.3,
C
     &     -3.6, -2.2,  -.3,  1.,   2.,   3.,   4.1,  5.2,  6.2,  7.1,
     &     10.3, 13.,  15.,
C
     &     -5.8, -4.8, -3.,  -1.4,  -.3,   .6,  1.7,  2.7,  3.8,  4.6,
     &      7.8, 10.4, 12.4,
C
     &     -8.1, -7.,  -5.2, -3.9, -2.7, -1.8,  -.7,   .2,  1.1,  2.,
     &      5.1,  8.,  10.,
C
     &    -10.6, -9.4, -7.6, -6.1, -5.1, -4.2, -3.2, -2.2, -1.3,  -.4,
     &      2.8,  5.5,  7.7,
C
     &    -13., -11.7, -10., -8.7, -7.6, -6.6, -5.6, -4.6, -3.6, -2.7,
     &       .5,  3.1,   5.1,
C
     &    -15.1, -14., -12.2, -11., -10., -9., -8.,  -7.,  -6.1, -5.1,
     &     -2.1,   .6,   2.8,
C
     &    -17.2, -16.1, -14.6, -13.2, -12.1, -11.2, -10.2, -9.2, -8.4,
     &     -7.6,  -4.5,  -2.,     .2,
C
     &    -19.2, -18.3, -16.9, -15.6, -14.6, -13.6, -12.5, -11.6,
     &    -10.6, -10.,   -6.8,  -4.1,  -2. /
      FLAG = 'A6'
      END


Additional reference words: 5.10 buglist5.10 fixlist1.00
KBCategory: kbtool kbbuglist kbfixlist kberrmsg
KBSubcategory: FLIss
Solution Type : kbfix


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: September 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.