Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2762

Add more daffodilC support (arrays, alignment)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.5.0
    • Back End C-Generator
    • 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.

      Attachments

        Activity

          People

            jinterrante John Interrante
            jinterrante John Interrante
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: