ASN.1/C Cross-Compiling

Applies to: ASN.1/C 10.5

The OSS ASN.1 compiler provides a set of default settings for global directives. If you need a different set of global directives, you can create an OSS ASN.1 compiler configuration file. This is particularly useful when you need to cross-compile for a different target platform.

The OSS ASN.1 Tools includes configuration files for many popular platforms. For example, you can instruct the OSS ASN.1 compiler for Windows to cross-compile for Solaris SPARC by passing the appropriate configuration file as the first argument on the command line:

asn1 asn1dflt.solaris-sparc abc.asn

Each target platform contains a unique asn1dflt.target_platform file.

After cross-compiling, the generated output files are copied to the machine on which the application is developed for the target platform.

The OSS ASN.1 Tools also includes configuration files that can be used on the native platform, but with different data-alignment. For example, the configuration files for Windows MS Visual C++ with 1, 2, 4 or 8 byte alignments are:

  • asn1dflt.ms.zp1
  • asn1dflt.ms.zp2
  • asn1dflt.ms.zp4
  • asn1dflt.ms.zp8.

This documentation applies to the OSS® ASN.1 Tools for C release 10.5 and later.

Copyright © 2017 OSS Nokalva, Inc. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means electronic, mechanical, photocopying, recording or otherwise, without the prior permission of OSS Nokalva, Inc.
Every distributed copy of the OSS® ASN.1 Tools for C is associated with a specific license and related unique license number. That license determines, among other things, what functions of the OSS ASN.1 Tools for C are available to you.