Sujet : Re: Calling conventions (particularly 32-bit ARM)
De : johnl (at) *nospam* taugh.com (John Levine)
Groupes : comp.archDate : 15. Jan 2025, 04:31:47
Autres entêtes
Organisation : Taughannock Networks
Message-ID : <vm7a73$qm2$1@gal.iecc.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
According to MitchAlsup1 <
mitchalsup@aol.com>:
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.
-- Regards,John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",Please consider the environment before reading this e-mail. https://jl.ly