Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | .TH ASN1C 1 "\*(Dt" "ASN.1 Compiler" "ASN.1 Compiler" |
| 2 | .SH NAME |
| 3 | asn1c \- ASN.1 Compiler |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4 | .SH SYNOPSIS |
Lev Walkin | 06b8d7a | 2004-09-23 22:06:02 +0000 | [diff] [blame] | 5 | asn1c [\fB\-E\fR [\fB-F\fR] | \fB\-P\fR | \fB\-R\fR] |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 6 | [\fB\-S\fR\fIdir\fR] |
| 7 | [\fB\-W\fR\fIdebug-\fR...] [\fB\-f\fR\fIoption\fR...] [\fB\-p\fR\fIrint-\fR...] |
| 8 | \fIinfile\fR... |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 9 | .SH DESCRIPTION |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 10 | asn1c compiles the ASN.1 specifications into the set of |
| 11 | target language (C/C++) encoders and decoders for BER, DER, |
| 12 | and other encoding standards. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13 | .SH OPTIONS |
| 14 | .TP |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 15 | \fIOverall Options\fR |
| 16 | \fB\-E \-F \-P \-R\fR |
| 17 | .BI "\-S " directory |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 18 | .TP |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 19 | \fIWarning Options\fR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20 | .br |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 21 | \fB\-Werror \-Wdebug-lexer \-Wdebug-fixer \-Wdebug-compiler\fR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22 | .TP |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 23 | \fILanguage Options\fR |
Lev Walkin | 3aed7ff | 2004-08-19 13:24:58 +0000 | [diff] [blame] | 24 | .br |
Lev Walkin | 9930189 | 2004-09-14 12:48:17 +0000 | [diff] [blame] | 25 | \fB\-fall-defs-global \-fbless-SIZE \-fnative-types \-funnamed-unions \-ftypes88\fR |
Lev Walkin | 3aed7ff | 2004-08-19 13:24:58 +0000 | [diff] [blame] | 26 | .TP |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 27 | \fIOutput Options\fR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 28 | .br |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 29 | .B \-print-constraints \-print-lines |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 30 | .SH OVERALL OPTIONS |
| 31 | .TP |
| 32 | .B \-E |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 33 | Stop after the parsing stage and print the reconstructed ASN.1 |
| 34 | specification code to the standard output. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 35 | .TP |
| 36 | .B \-F |
| 37 | Used together with \c |
| 38 | .B \-E\c |
| 39 | , instructs the compiler to stop after the ASN.1 syntax |
| 40 | tree fixing stage and dump the reconstructed ASN.1 specification |
| 41 | to the standard output. |
| 42 | .TP |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 43 | .B \-P |
| 44 | Dump the compiled output to the standard output instead of creating the |
| 45 | target language files on disk. |
| 46 | .TP |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 47 | .B \-R |
| 48 | Restrict the compiler to generate only the ASN.1 tables, |
| 49 | omitting the usual support code. |
Lev Walkin | 3aed7ff | 2004-08-19 13:24:58 +0000 | [diff] [blame] | 50 | .TP |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 51 | \fB\-S\fR \fIdirectory\fR |
Lev Walkin | 3aed7ff | 2004-08-19 13:24:58 +0000 | [diff] [blame] | 52 | Use the specified directory with ASN.1 skeleton files. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 53 | .SH WARNING OPTIONS |
| 54 | .TP |
| 55 | .B \-Werror |
| 56 | Treat warnings as errors; abort if any warning is produced. |
| 57 | .TP |
| 58 | .B \-Wdebug-lexer |
| 59 | Enable lexer debugging during the ASN.1 parsing stage. |
| 60 | .TP |
| 61 | .B \-Wdebug-fixer |
| 62 | Enable ASN.1 syntax tree fixer debugging during the fixing stage. |
| 63 | .TP |
| 64 | .B \-Wdebug-compiler |
| 65 | Enable debugging during the actual compile time. |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 66 | .SH LANGUAGE OPTIONS |
| 67 | .TP |
Lev Walkin | dd32b59 | 2004-09-06 08:07:29 +0000 | [diff] [blame] | 68 | .B \-fall-defs-global |
| 69 | Normally the compiler hides the definitions (asn1_DEF_xxx) of the inner |
| 70 | structure elements (members of SEQUENCE, SET and other types). This option |
| 71 | makes all such definitions global. |
| 72 | Enabling this option may pollute the namespace by making lots of asn1_DEF_xxx |
| 73 | structures globally visible, but will allow you to manipulate |
| 74 | (encode and decode) the individual members of any complex ASN.1 structure. |
| 75 | .TP |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 76 | .B \-fbless-SIZE |
| 77 | Allow SIZE() constraint for INTEGER, ENUMERATED, and other types for which this |
| 78 | constraint is normally prohibited by the standard. This is a violation of |
| 79 | an ASN.1 standard and compiler may fail to produce the meaningful code. |
| 80 | .TP |
Lev Walkin | 9930189 | 2004-09-14 12:48:17 +0000 | [diff] [blame] | 81 | .B \-fnative-types |
| 82 | Use the native machine's data types (int, double) whenever possible, |
| 83 | instead of the compound ASN.1 INTEGER_t, ENUMERATED_t and REAL_t types. |
Lev Walkin | 1538561 | 2004-08-20 13:24:01 +0000 | [diff] [blame] | 84 | .TP |
| 85 | .B \-funnamed-unions |
| 86 | Enable unnamed unions in the definitions of target language's structures. |
| 87 | .TP |
| 88 | .B \-ftypes88 |
| 89 | Use only ASN.1:1988 embedded types. |
| 90 | .SH OUTPUT OPTIONS |
| 91 | .TP |
| 92 | .B \-print-constraints |
| 93 | When -EF are also specified, this option forces the compiler to explain |
| 94 | its internal understanding of subtype constraints. |
| 95 | .TP |
| 96 | .B \-print-lines |
| 97 | Generate "-- #line" comments in \fB-E\fR output. |
Lev Walkin | 06b8d7a | 2004-09-23 22:06:02 +0000 | [diff] [blame] | 98 | .SH SEE ALSO |
| 99 | .TP |
Lev Walkin | 1298467 | 2004-09-24 21:00:15 +0000 | [diff] [blame^] | 100 | \&\fIunber\fR\|(1), \&\fIenber\fR\|(1) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 101 | .SH AUTHORS |
| 102 | Lev Walkin <vlm@lionet.info> |