Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.5.0
-
None
Description
Extend the C code generator to support more DFDL features such as
arrays with occursCountKind="expression" and padding variable length
elements to multiples of 4 bytes by following them with alignment="4"
elements. Currently the generator handles only finite inlined arrays,
not unbounded arrays or arrays with dynamically allocated memory. An
array's declaration always uses its maxOccurs attribute as its size
and uses that same amount of static memory space regardless of how
many values the data file actually puts into the array element.
Note the new support for padding variable length elements is
rudimentary, barely handles even my specific alignment="4" use case,
and needs reviewer suggestions to improve it.