Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data products] Add symbolic constants for record sizes #399

Closed
4 tasks done
bocchino opened this issue Apr 1, 2024 · 0 comments · Fixed by #429
Closed
4 tasks done

[Data products] Add symbolic constants for record sizes #399

bocchino opened this issue Apr 1, 2024 · 0 comments · Fixed by #429
Assignees
Labels
code generation Issues related to code generation f prime integration Issues related to integration with F Prime
Milestone

Comments

@bocchino
Copy link
Collaborator

bocchino commented Apr 1, 2024

In the generated code, add a symbolic constant for the size of each fixed-size record. That will allow users to size containers in terms of the record sizes, which is more convenient than using the underlying types. For example, the user can say "give me a container that's big enough to hold 10 records R" instead of reasoning that record R has struct type S and saying "give me a container that's big enough to hold 10 pairs of (record id, type S)."

We can also add constexpr functions for array records, e.g., "give me the size of an array record R with 10 array elements."

  • Update generated code and unit tests
  • Update FPP functional tests
  • Update SignalGen example in Ref deployment
  • Update F Prime design doc
@bocchino bocchino added the code generation Issues related to code generation label Apr 1, 2024
@bocchino bocchino added this to the Data Products milestone Apr 1, 2024
@bocchino bocchino self-assigned this Apr 1, 2024
@bocchino bocchino added the f prime integration Issues related to integration with F Prime label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code generation Issues related to code generation f prime integration Issues related to integration with F Prime
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant