2014年7月30日 星期三

Abstract Syntax Notation One (ASN.1)

[wiki]  Abstract Syntax Notation One (ASN.1)
http://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One

compiler - what does it mean "compile asn.1"? - Stack Overflow
http://stackoverflow.com/questions/14858838/what-does-it-mean-compile-asn-1

An ASN.1 specification describes messages that you would like to exchange with other machines. It does this in a manner that is independent of programming language or computer architecture. This means that to use the ASN.1 specification, a tool is needed to "compile" that ASN.1 specification, checking for syntax errors and some kinds of semantic errors before generating code for your target machine architecture in your target programming language to encode and decode the messages from the ASN.1 specification. Note that ASN.1 compilers generate C stuctures, Java classes, or C++ classes in addition to generating code for encoding and decoding messages based on the generated structures.

There is an excellent place to see an play with this process without dealing with actual generated code. There is an online ASN.1 compiler and runtime engine at http://asn1-playground.oss.com where you can compile ASN.1 specifications and encode/decode messages without writing any code in a target programming language.
ASN.1 Playground: free online compiler, encoder/decoder
http://asn1-playground.oss.com/

ASN.1 Tools
http://www.itu.int/en/ITU-T/asn1/Pages/Tools.aspx

asn1c: Lev Walkin → ASN.1 Exposed
http://lionet.info/asn1c/blog/

OSS Nokalva, Inc. — ASN.1 - Download Free Trial
http://www.oss.com/asn1/products/asn1-download.html






沒有留言: