Selective code splitting
Initial request: The compiler generates a large .cc files for some ASN.1 files with lot of type definition. To limit the g++ memory usage the generated code can be split to more than one files. But usually, the splitting is not required for all files in the project only just for a few ones. The selective code splitting can be supported only with Makefile modification.
After further investigation of the requirement, the following specification is proposed:
- Make the -U option (option for code slitting) positing dependent for both makefile_gen and compiler applications
- The ASN.1 or TTCN-3 modules listed after the -U option are splitted according to the specified mode
- Make the -U option compatible with the '-' (selective code generation feature)
- (Modification of TPD handling might be also required)
compiler A.ttcn B.ttcn C.asn - A.ttcn -U 2 B.ttcn C.asn //split module B and C into 2
compiler A.ttcn B.ttcn C.asn - -U 2 A.ttcn B.ttcn C.asn //split all modules into 2
compiler A.ttcn B.ttcn C.asn - A.ttcn B.ttcn -U type C.asn //split only module C by types
makefile_gen A.ttcn -U 2 B.ttcn C.asn //split module B and C into 2
makefile_gen A.ttcn B.ttcn -U type C.asn //split only module C by types
Edited by Adam Knapp