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
Simplify finding decoder logic #93
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brchiu
force-pushed
the
simplify_finding_decoder_logic
branch
from
May 20, 2016 04:49
d7ca449
to
584914f
Compare
Item 1 is implemented and add to this pull request. |
brchiu
force-pushed
the
simplify_finding_decoder_logic
branch
from
November 9, 2016 13:14
584914f
to
c70fefd
Compare
brchiu
force-pushed
the
simplify_finding_decoder_logic
branch
from
November 18, 2016 12:26
c70fefd
to
01bfcfc
Compare
brchiu
force-pushed
the
simplify_finding_decoder_logic
branch
from
March 16, 2017 14:28
01bfcfc
to
7c08aea
Compare
Fix 'make check' failures. |
brchiu
force-pushed
the
simplify_finding_decoder_logic
branch
from
March 17, 2017 06:30
7c08aea
to
f5d328d
Compare
This was referenced Apr 10, 2017
brchiu
force-pushed
the
simplify_finding_decoder_logic
branch
from
May 19, 2017 02:29
0372693
to
65e0e8a
Compare
vlm
reviewed
Aug 2, 2017
@@ -4825,7 +4825,7 @@ check-per: | |||
done; done; fi | |||
@if test -f sample-DL-DCCH-Message-1.per ; then \ | |||
for f in sample-*-[1-9].per; do \ | |||
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \ | |||
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*//"`; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentional?
Merged, thank you! (Though see my comment). |
This was referenced Aug 21, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Taking 'FileCreationTimeStamp' of sample TAP3 as example, the corresponding ASN.1 expression of tap3.asn1 are :
Part of generated FileCreationTimeStamp.c is :
And part of generated DateTimeLong.c
With eye-inspection, we can see when invoking ber_decoder of asn_DEF_FileCreationTimeStamp,
function SEQUENCE_decode_ber is called eventually. And the address of asn_SPC_DateTimeLong_specs_1 is assigned to asn_DEF_FileCreationTimeStamp's member variable 'specifics'.
Moreover, asn_MBR_DateTimeLong_1 is used for accessing child elements when proceeding the process of decoding each child element of DateTimeLong.
So after some tweak of asn1c_C.c and other files, we can eliminate the indirect access of codec function and generate the final data structure for asn_DEF_FileCreationTimeStamp directly. Thus we can remove the excessive helper functions which occupy a lot of code space.
New type descriptor in FileCreationTimeStamp.c
There are some more possible improvement to this pull request :
We might need to modify asn1c_C.c and perhaps asn1c_constraint.c to achieve these.
Notice :