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

Article translations Article translations
Article ID: 77561 - View products that this article applies to.
This article was previously published under Q77561
Expand all | Collapse all

On This Page

SUMMARY

Page 300 of the Microsoft FORTRAN Reference Manual says that the $LARGE metacommand specified without array names is identical to compiling the source 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 will be given the HUGE attribute, and only then the array will be assumed to exceed 64K.

This is not an issue with FORTRAN PowerStation, because these attributes are not supported

MORE INFORMATION

The following code will produce the warning "F4330: I: NEAR/FAR/HUGE equivalence attribute conflict," illustrating that the $LARGE metacommand is treating the local array 'I' as HUGE. Removing $LARGE and compiling with /AH removes this error message.

Sample code

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

Properties

Article ID: 77561 - Last Review: December 1, 2003 - Revision: 2.0
APPLIES TO
  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 5.1
  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 5.1
Keywords: 
KB77561
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com