Home »
Public Forums »
archive »
common block question
common block question [message #75726] |
Wed, 13 April 2011 12:15 |
oxfordenergyservices
Messages: 56 Registered: January 2009
|
Member |
|
|
I am writing a program which will call a number of subroutines. I
have a number of arrays, the largest of which (and will take a
significant part of the memory) will be used in most (but not all) of
the subroutines, will be created at the beginning and be retained
until the end of the program.
Is it easiest for me to define a common block in the main program with
this main array and make this block available to the other sub
routines when necessary? Is there any overhead in making the block
available to all sub routines?
I really just want to use a few global variables which are available
to the whole list of programs
Thanks!
|
|
|
Current Time: Wed Oct 08 19:22:14 PDT 2025
Total time taken to generate the page: 0.00426 seconds