You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2023/02/08 14:32:00 UTC

[jira] [Closed] (DAFFODIL-2762) Add more daffodilC support (arrays, alignment)

     [ https://issues.apache.org/jira/browse/DAFFODIL-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson closed DAFFODIL-2762.
-----------------------------------

Verified the specified commit (commit 46e13c3d484a46468e6dabd4ae50cdb1edd9e7bd) is included in the latest pull from the daffodil repository.

Verified, via review, change identified in the commit comment were implemented. 

Verified the affected daffodil subproject sbt test suites executed successfully including the added tests.

> Add more daffodilC support (arrays, alignment)
> ----------------------------------------------
>
>                 Key: DAFFODIL-2762
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2762
>             Project: Daffodil
>          Issue Type: Improvement
>          Components: Back End C-Generator
>    Affects Versions: 3.5.0
>            Reporter: John Interrante
>            Assignee: John Interrante
>            Priority: Major
>             Fix For: 3.5.0
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)