Optimize Code Generation by eliminating Unused Functions #328
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces functionality to automatically detect and exclude unused generated functions, resulting in significantly smaller output code for both C and Ada backends.
Key Features
Unused Function Elimination via
-icdPdusWhen using the
-icdPdusargument, ASN1SCC now performs a dependency analysis starting from the specified PDUs and their associated functions (isEqual(),isValid(),init(),encode(), anddecode()).New
-dpdusArgumentA new command-line option,
-dpdus, was added to help identify Protocol Data Units (PDUs) in the input ASN.1 grammar.-icdPdusmore easily.Impact