The information in this article applies to:
SYMPTOMSCompilation of a large BLOCK DATA subprogram can take a very long time using the FORTRAN PowerStation. In tests, a BLOCK DATA subprogram with 32,000 DATA statements took approximately 45 minutes to compile on a 50 megahertz (MHz) 486 machine. CAUSE
This slow compilation is caused by initializing a large array in a
BLOCK DATA subprogram with several DATA statements. One DATA statement
for each array element produces the slowest compile. The array
elements must also be initialized in the order that they appear in the
array for the slow compilation to occur.
RESOLUTIONIf array elements are initialized in the reverse order that they appear in the array, compilation time will be significantly reduced (for example, reduced from 45 minutes to 3 minutes). Reducing the number of DATA statements by initializing thousands of array elements in a single DATA statement also reduces compile time. MORE INFORMATIONThe following sample BLOCK DATA subprograms illustrate the problem and one possible resolution: Sample Code #1
Sample Code #2
Additional query words: 1.00 4.00 hang
Keywords : kbLangFortran |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |