A new ASN1C Linux 64-bit evaluation kit is now available for ASN1C version 7.3.3 to address problems reported by users with the current package. One problem reported was when executing the ASN1C binary, an error similar to this may be displayed: "version 'GLIBC_2.12' not found". A second …
read moreOther articles
The ASN1C Visual Studio Wizard
You may or not be aware that ASN1C includes a Visual Studio Wizard that you can use from Visual Studio to build a library from one or more ASN.1 files. If you have at least ASN1C v732, the wizard is present and usable.
The files for the wizard are …
read moreImproved TBCD and BCD Support for Java/C#
Our next release of ASN1C (v 7.3) will include improved support for TBCD and BCD strings for Java and C#. In short, for these types, the toString/ToString function will return the TBCD/BCD interpretation of the octets, rather than merely their hexadecimal representation. This also improves the print …
read moreUsing -prttostrm (print-to-stream) vs -prttostr (print-to-string) in generated C code
The capability to print the contents of binary-encoded data in a human-readable form has always been an often used feature of our code generation products. We have had since the beginning the standard -print code generation option for generating code that would print the contents of generated data structures to …
read moreRe-using Decoded Items in a Subsequent Encoding
This blog post attempts to provide advice about re-using items from a decoded message in a subsequent encoding of a different message.
Let's look at the employee sample in the c/sample_ber/employee directory of the ASN1C SDK. The ASN.1 specification for this sample is fairly simple and looks …
read moreCompact code generation in ASN1C
ASN.1 is used in a lot of different areas and a new area that is within the Internet of Things (IoT). In particular Narrowband IoT (NB-IoT) uses ASN.1 UPER-based messaging.
One characteristic of these devices is they are small, so code size is critical. We have been working …
read moreASN1C 7.2 Improved Comment Handling
In version 7.2, we improved our handling of ASN.1 comments, as follows.
- When using the "Pretty-print ASN.1" (-asn1) option, comments from type assignments and elements (SEQUENCE/SET/CHOICE components) are now included in the output. Previously, pretty-printed ASN.1 did not include any ASN.1 comments in …
Performance Improvements in ASN1C v7.2
One of the new features announced in the release of ASN1C v7.2 was improved C/C++ PER encode and decode performance. This blog post provides some details on the improvements.
We measured a number of different messages types, but two that stood out were the improvement in encoding and …
read moreCanonical OER
With ASN1C v7.1 it's possible to encode and decode OER in C according to the canonical OER rules. Canonical OER can be utilized by setting the ASN1CANON flag in the context before the encoding or decoding is done:rtxCtxtSetFlag(&ctxt, ASN1CANON);The Canonical sample in c/sample_oer illustrates using …