On 20/07/2018 12:38 AM, Thomas David Rivers wrote:
David Crayford wrote:
It's always best to get storage on the stack and avoid the heap if
you can. z/OS C/C++ supports the GCC extensions that allow you to
align storage using
variable attributes.
char buffer[1408] __attribute__((__aligned__(16))) ; // only works
in 64-bit
Unless the stack is above-the-bar and you need below-the-bar
memory... I mention
this because the OP wrote that he is using __malloc31().
Good point! Although it's curious why the OP is using __malloc31() when
calling CSRC4RG1 which is a 64-bit service. But for z/OS it would be
probably be useful to
have a aligned_malloc31() for such a requirement. Does Dignus C have
something like aligned_malloc()?
I don't think LE allows the stack to be above-the-bar, but in a 64-bit
Dignus program
it can certainly be there (and, by default, is...)
It sure does. Check out the STACK64 LE runtime option.
- Dave R. -
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN