Hello all,

we have some modules written in C that have large arrays with constants.
For some reasons we are forced to compile those modules using the RENT
compiler option, which moves those arrays to the WSA (writable storage area) at runtime, which is not a desired behaviour, because this way, the storage is occupied twice - once ín the WSA and second in the initialization area in the
STATIC CSECT - and there is coding needed at startup to move the constants
into the WSA.

We are not able to move to NORENT due to site conventions.

Now my question: is it sufficient to mark those arrays with the const attribute,
that is

static const double tab [100000] = { ... values follow ...  };

or are there special #pragmas needed to prevent this table from being
moved to the WSA, given the RENT compiler option?

Kind regards

Bernd

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to