Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch.embedded > #28654 > unrolled thread
| Started by | Clifford Heath <no.spam@please.net> |
|---|---|
| First post | 2019-06-06 09:48 +1000 |
| Last post | 2019-06-06 09:54 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.arch.embedded
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Static JSON parser for embedded Clifford Heath <no.spam@please.net> - 2019-06-06 09:48 +1000
Re: Static JSON parser for embedded pozz <pozzugno@gmail.com> - 2019-06-06 09:54 +0200
| From | Clifford Heath <no.spam@please.net> |
|---|---|
| Date | 2019-06-06 09:48 +1000 |
| Subject | Re: Static JSON parser for embedded |
| Message-ID | <4xYJE.48747$RP3.172@fx11.iad> |
On 6/6/19 12:44 am, pozz wrote: >> So there is existing work, and no doubt community support for more. >> You could do a lot worse than start with ASN1CC. > > I eventually take a look at asn1scc and found a big limitation: it > doesn't support extensibility feature of ASN.1. One more comment. You mention (in other messages) that JSON is difficult without using dynamic memory. ASN1CC is designed to avoid using dynamic memory (for the same reason; embedded system constraints), which is why it cannot implement arbitrary extensions. The best it could do is to skip unknown extensions. But in PER, items are not tagged or length-delimited, and skipping an extension requires at least a knowledge of how big it is. Clifford Heath.
[toc] | [next] | [standalone]
| From | pozz <pozzugno@gmail.com> |
|---|---|
| Date | 2019-06-06 09:54 +0200 |
| Message-ID | <qdagrt$fb$1@dont-email.me> |
| In reply to | #28654 |
Il 06/06/2019 01:48, Clifford Heath ha scritto: > On 6/6/19 12:44 am, pozz wrote: >>> So there is existing work, and no doubt community support for more. >>> You could do a lot worse than start with ASN1CC. >> >> I eventually take a look at asn1scc and found a big limitation: it >> doesn't support extensibility feature of ASN.1. > > One more comment. You mention (in other messages) that JSON is difficult > without using dynamic memory. ASN1CC is designed to avoid using dynamic > memory (for the same reason; embedded system constraints), which is why > it cannot implement arbitrary extensions. The best it could do is to > skip unknown extensions. Yes, many times this behaviour is good, instead of breaking at all the system. > But in PER, items are not tagged or > length-delimited, and skipping an extension requires at least a > knowledge of how big it is. Ok, PER can't be used to skip extended variables. However I can use BER. Why do asn1scc refuses to compile definitions file with extensions when BER is used?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.arch.embedded
csiph-web