[J3] [EXTERNAL] Re: Changing address of an allocatable on assignment when shapes match
Robert Corbett
rpcorbett at att.net
Sat Aug 24 02:11:50 EDT 2019
I think I know who wrote the code that implements deallocation/allocation for allocatable variables on intrinsic assignment in the Sun/Oracle compiler. He is a sharp programmer. I expect the generated code to be standard conformant.
The Sun/Oracle compiler tries to avoid generating unnecessary calls to the storage allocation and deallocation routines. For the sample code shown, space for the variable S could be allocated statically or on the stack. The results written clearly show that space for the variable S is not allocated on the stack. Space for S could be allocated statically, but I doubt that is happening.
Robert Corbett
More information about the J3
mailing list