mouse07410 / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
101 stars 73 forks source link

Question: How to compile just a subset of a big spec? #74

Open gatopeich opened 3 years ago

gatopeich commented 3 years ago

It would be nice if asn1c -pdu=PDU would only generate code for the dependencies of the given PDU. Or at least list them...

Using asn1c for 5G development sometimes we just need a small part of a huge spec. I am using gcc generated dependencies to scrub all unused code, and would like to avoid that.

Thanks for maintaining this fork of asn1c, the best Open Source compiler for 3GPP specs.

mouse07410 commented 3 years ago

Thanks for maintaining this fork of asn1c, the best Open Source compiler for 3GPP specs.

You're very welcome, and I wish I could spend more time on it. Alas, it is what it is.

It would be nice if asn1c -pdu=PDU would only generate code for the dependencies of the given PDU. Or at least list them...

Sorry - implementing this would require more time and knowledge than I am able to spend.

I will not close this issue for now, in a faint hope that somebody might submit a PR to implement it.