Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Common Block

JohnNichols
重要分销商 III
458 次查看
    COMMON nrhs

 

In the code I am using there is the common statement in two subroutines -- I always thought that a common block had to have a name?

 

0 项奖励
1 回复
Steve_Lionel
名誉分销商 III
458 次查看

Nope - there is a thing called "blank COMMON" with slightly different semantics (you're allowed to have different lengths in different program units.) The more common (!) use of it in the past was for temporary variables where you didn't care if some other subroutine used the same memory.

0 项奖励
回复