Basic HTML version of Foils prepared August 7 98

Foil 6 Fortran 90/95 Memory Allocation

From DoD HPF Training -- 2. Fortran90 DoD Training and Others -- 1995-98. by Chuck Koelbel -- Rice University


1 ALLOCATABLE arrays use heap storage
  • Declared without defined bounds
  • ALLOCATE & DEALLOCATE statements create and free storage
2 Local arrays use stack storage
  • Bounds may be non-constant, evaluated at procedure entry
  • E.g., local arrays the same size as a dummy parameter
3 Assumed-shape arrays can pass array sizes
  • Dummy parameters without declared bounds
  • Compiler passes bounds in a data descriptor
  • Bounds can be queried with intrinsics

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Aug 9 1998