Start a conversation

How are Ada packed arrays handled? Are they converted to strings? and if so, do you add 1 extra byte for the null?

Packed arrays are referenced as byte-arrays in C, with appropriate shifting and masking to handle cases where the elements are less than 8-bits/element. We don't generally add an extra byte. Ada strings are converted to C char-arrays, and C string literals end up with an extra null byte. 

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. MapuSoft

  2. Posted
  3. Updated

Comments