Generated C/C++ files and the -compat Option

ASN1C 5.6 and below did not generate separate files for common definitions, encode and decode functions (<moduleName>.c/.cpp, <moduleName>Enc.c/.cpp, <moduleName>Dec.c/.cpp). All code was generated in a single file with the name <moduleName>.c/.cpp. If it is necessary to maintain this behavior then use the –compat 5.6 option.

Also, the behavior of the -cfile option is slightly changed in ASN1C 5.7 and above. In 5.6 and below, the –cfile option did not have any effect for files containing copy, print, compare, etc functions. For ASN1C 5.7 and above, –cfile causes everything to be output to one file unless specific filename parameters are specified with –genPrint, -genCopy, etc. Once again, to maintain the previous behavior the –compat 5.6 option can be used.