[J3] Question about what some processors do
Van Snyder
van.snyder at sbcglobal.net
Fri Oct 22 00:15:13 UTC 2021
If a named constant in a module is private, and its only use is in one
assignment statement that assigns a value to a component of a structure
in another named constant declaration, or as a data-stmt-value, does
the processor produce the first constant in the object file?
I'm curious about this because I have a derived type with 18 array
components with extents given by length parameters (and eleven
scalars). Values are created by another program that generates named
constants for values for the components, and then uses them in a type
constructor to create another named constant for the derived-type
object.
If processors retain the intermediary named constants, I will
eventually use a giant type constructor that avoids the intermediary
named constants, when processors support the essentially-unlimited
statement length in the next standard. If not, I won't need to change
my code generator.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20211021/a93ce148/attachment-0001.htm>
More information about the J3
mailing list