Rhapsody / manual code in C/C++

These environments are also completely supported. aadl2glueC creates the necessary C code that reads and writes the relevant ASN.1 messages, utilizing asn1Scc's [15] "bridge" data structures in C that contain the semantically equivalent information. This considerably lessens the effort required to access the message marshalling routines from within Rhapsody (or manually written C/C++ code), as the user has access to simple standalone3.3 C data structures for all the messages exchanged.


Table 2.3: From ASN.1 to C
INTEGER long
REAL double
BOOLEAN int
OCTET STRING char[x] plus an int xyz_len variable
ENUMERATED long
SEQUENCE OF typename[x] plus an int xyz_len variable
SEQUENCE struct ...


Table 2.3 describes the mapping from ASN.1 entities to the C "bridge" variables.