Liste des Groupes | Revenir à c arch |
According to MitchAlsup1 <mitchalsup@aol.com>:Pass by COMMON block allows one to pass hundreds of data values in a>I would think that for Fortran (==everything passed by reference)>
memory would beat registers most of the time.
Pass by COMMON block was even faster.
Sometimes. On machines that don't have direct addressing, such as
S/360,
the code needs to load a pointer to the data either way so it's a wash.
>
Even when you do have direct addressing, if code is compiled to be
position indepedent, the common block wouldn't be in the same module
as the code that references it so it still needs to load a pointer
from the GOT or whatever its equivalent is.
Les messages affichés proviennent d'usenet.