Memory footprint of autogenerated C structures #246
-
Hi, Please correct me if I have misunderstood the way to use To serialize a message according to a
This So I'm interested in the memory footprint of the structure and what I see worries me. I see that my Could you tell me the reason why the members of Isn't there a way to reduce their memory footprint? I mean, a |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
To be honest, there is no technical reason for using int64 or uint64 everywhere rather than smaller types based on the range. Actually, it was never requested. We plan to support it in a future release. |
Beta Was this translation helpful? Give feedback.
-
Hi, we have a similar footprint issue: Problem: What we would like to do:
I would appreciate a solution to this problem since we work in a very constrained environment. |
Beta Was this translation helpful? Give feedback.
-
While I understand the need, please note that the impact of this feature has to be carefully evaluated:
With this in mind, if you have a short-term need for this feature you may proceed in updating the runtime and the templates in a separate branch ; ESA will take care of the Python bindings and other tools that are under our control. |
Beta Was this translation helpful? Give feedback.
-
@ThibFrgsGmz @RudolfGerber09 There is a new flag |
Beta Was this translation helpful? Give feedback.
-
@RudolfGerber09 I just added the linux binary release here: https://github.com/ttsiodras/asn1scc/releases/tag/4.3.1.3 |
Beta Was this translation helpful? Give feedback.
@ThibFrgsGmz @RudolfGerber09
The feature has been implemented and merged in master branch for both Ada and C backends.
There is a new flag
-slim
that you can use and the tool will generate integer types that are as small as possible given the range constraint.