- Emitter Framework: IBM SOM (2.1 and 3.0) only. somFree contains non-modular SOM compiler written in C++.
- Interface Repository Framework: IBM SOM and somFree.
- Emitter Framework: Write IDL, invoke SOM compiler using any chosen emitter for specified IDL. Even if multiple IDLs are specified on the command line, the SOM compiler will process them independently.
- Interface Repository Framework: Write IDL, invoke SOM compiler using IR emitter for specified IDL. IR emitter creates/updates SOM.IR file. Then any tool can read SOM.IR file using Interface Repository Framework.
Amount of information
- Emitter Framework: Limited by what is reachable from processed IDL and included ones. Unresolved forward class declarations are possible. For instance, ::SOMClassMgr::somInterfaceRepository method returns ::Repository object reference, but somcm.idl does not include repostry.idl. Emitters like "imod" collecting information from several IDLs at once have to incrementally edit output file. They put signatures into text file to locate where to append new strings.
- Interface Repository Framework: Contains information gathered from multiple IDLs in one place. No unresolved forward declarations allowed.
- Emitter Framework: Has class for every possible entity in the IDL, including comments and passthru. Type names in arguments and results are fully qualified and has precise names.
- Interface Repository Framework: Comments and passthru are absent. Metaclass name is available from modifier, however, it needs to be resolved. Overriden methods and release order is available. Instance data is available as record TypeCode (tk_struct). There are TypeDef for type definitions, but everywhere else CORBA TypeCode is used to specify types, and precise names are lost. For instance, biter.idl defines class Biter::BINDITER_TWO having method with argument of "CosNaming::BindingList" type. This type becomes in CORBA TypeCode "sequence<Binding>" without any hint to look for Binding into "CosNaming" module. This time CosNaming is an outer module for one of class parents, so it is possible to lookup this name traversing class hierarchy, but in general this is heuristic job.
- Emitter Framework: Static environment. Compiled languages. Documentation generators.
- Interface Repository Framework: Dynamic environment. Scripting languages. Remote procedure calls.
- Emitter Framework: 22 classes: SOMTAttributeEntryC, SOMTBaseClassEntryC, SOMTClassEntryC, SOMTCommonEntryC, SOMTConstEntryC, SOMTDataEntryC, SOMTEmitC, SOMTEntryC, SOMTEnumEntryC, SOMTEnumNameEntryC, SOMTTemplateOutputC, SOMTMetaClassEntryC, SOMTMethodEntryC, SOMTModuleEntryC, SOMTParameterEntryC, SOMTPassthruEntryC, SOMTSequenceEntryC, SOMTStringEntryC, SOMTStructEntryC, SOMTTypedefEntryC, SOMTUnionEntryC, SOMTUserDefinedTypeEntryC.
- Interface Repository Framework: 11 classes + 1 pseudoclass: AttributeDef, ConstantDef, Contained, Container, ExceptionDef, InterfaceDef, ModuleDef, OperationDef, ParameterDef, Repository, TypeDef; and TypeCode pseudoclass.
Incremental updates of text files is hard to implement in complex cases. IR to Delphi importer is complex enough. It defines pointers types, sequences and arrays on demand using several passes. In order to do this it must keep track of the already defined types. This would be hard (yet possible) to reimplement in incremental text editing fashion and even more hard to update. That is troublesome to develop from scratch. C and C++ emitters put tons of macros and this way offload their job to C(C++) preprocessor. Also, unresolved forward references in SOM map to #define in C and unresolved class references in C++, so it is not a problem in these languages, but a problem in other ones. So Emitter Framework is good when stateless processing is required. IRF is good when whole picture is required, but it for no good reason lacks some information.