DOCERR: $LARGE Not Identical to /AH with Local Arrays

This article was previously published under Q77561
This article has been archived. It is offered "as is" and will no longer be updated.
Page 300 of the Microsoft FORTRAN Reference Manual says that the $LARGEmetacommand specified without array names is identical to compiling thesource module with the /AH compiler option.

The $LARGE metacommand is not equivalent to the /AH compiler option. the$LARGE metacommand will specify the HUGE attribute on all declared arrays.The /AH compiler option will assume that only array formal arguments willbe given the HUGE attribute, and only then the array will be assumed toexceed 64K.

This is not an issue with FORTRAN PowerStation, because these attributesare not supported
The following code will produce the warning "F4330: I: NEAR/FAR/HUGEequivalence attribute conflict," illustrating that the $LARGEmetacommand is treating the local array 'I' as HUGE. Removing $LARGEand compiling with /AH removes this error message.

Sample code

$LARGE      integer i(2),j      equivalence (i(1),j)      end				
5.00 5.10

Article ID: 77561 - Last Review: 12/28/2014 02:27:32 - Revision: 2.0

  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 5.1
  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 5.1
  • kbnosurvey kbarchive KB77561