Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:tk:som:sc:ug [2024/10/11 09:04] – [Include section (Preprocessing)] prokushev | en:docs:tk:som:sc:ug [2025/05/29 15:50] (current) – [2. Appendix 2. Terminology changes and syntax construct evolution] prokushev | ||
---|---|---|---|
Line 7: | Line 7: | ||
somFree Compiler and Emitter Framework is a free open source binary compatible reimplementation of IBM SOM Compiler and Emitter Framework. It is tries to be as compatible as possible on API and ABI level. | somFree Compiler and Emitter Framework is a free open source binary compatible reimplementation of IBM SOM Compiler and Emitter Framework. It is tries to be as compatible as possible on API and ABI level. | ||
- | ===== Changes ===== | ||
- | Changes from original somFree compiler: | ||
- | |||
- | * Most of internal structures now also present as in old IBM SOM 2.1 NT Toolkit. | ||
- | * New emitters: | ||
- | * LNK - Open Watcom WLink support. | ||
- | * DUMP - displays structures, available to emitter. | ||
- | * PAS - Pascal client support. | ||
- | * IPAS - Pascal implementation classes support. | ||
- | * SOM Compiler library now mostly documented. | ||
- | * SOMLINK style functions for most of SOM Compiler library added. | ||
- | * Emitters now IBM SOM 2.1 and IBM SOM 3.0 compatible without recompilation. | ||
- | * somFree Compiler supports IBM SOM 2.1, IBM SOM 3.0, and somFree 1.0 emitters. | ||
- | * somtShowEntry function outputs more info. | ||
- | * Undocumented SOMTTypes now documented. | ||
- | * SOMIPC now supports IDL 4.2 specification. | ||
- | * CORBA C Language Mapping Specification 1.0 now supported by default instead of CORBA 1.1 C Language mapping. | ||
- | * Added support of OIDL files | ||
===== somFree Compiler ===== | ===== somFree Compiler ===== | ||
Line 480: | Line 462: | ||
===== 1. Appendix 1. SOM ABI ===== | ===== 1. Appendix 1. SOM ABI ===== | ||
- | Due switching from MSVC (IBM SOM 2.1) to VAC (IBM SOM 3.0) some problems | + | Due to switching from MSVC (IBM SOM 2.1) to VAC (IBM SOM 3.0) some problems |
- | First problem is a calling convention. All non SOMLINK calls in IBM SOM 2.1 is a _cdecl calls. But under IBM SOM 3.0 all non SOMLINK calls is a Optlink calls. Read some info here: | + | The first problem is a calling convention. All non SOMLINK calls in IBM SOM 2.1 are a _cdecl calls. But under IBM SOM 3.0 all non SOMLINK calls are an Optlink calls. Read some info here: |
https:// | https:// | ||
- | Goal of somFree SOM Compiler and Emitter Framework is to provide a possibility to use original IBM SOM emitters as from IBM SOM 2.1 as from IBM SOM 3.0. Another goal is a development of somFree emitters, which can be used on both IBM SOM 2.1 and IBM SOM 3.0 compilers.To achieve above goals somFree provides some solutions: | + | Goal of somFree SOM Compiler and Emitter Framework is to provide a possibility to use original IBM SOM emitters as from IBM SOM 2.1 as from IBM SOM 3.0. Another goal is a development of somFree emitters, which can be used on both IBM SOM 2.1 and IBM SOM 3.0 compilers. To achieve above goals somFree provides some solutions: |
1. Automatic somc.dll calling convention switching. | 1. Automatic somc.dll calling convention switching. | ||
- | somFree SOMC.DLL provides automatic switching of IBM SOM 2.1 ABI and IBM SOM 3.0 ABI. Switching occurs on somtload | + | somFree SOMC.DLL provides automatic switching of IBM SOM 2.1 ABI and IBM SOM 3.0 ABI. Switching occurs on boatload |
2. Support both entry points (emitSL and emit) in emitters. | 2. Support both entry points (emitSL and emit) in emitters. | ||
somFree emitters automatically switches to IBM SOM 2.1 ABI on emit call and to IBM SOM 3.0 ABI on emitSL call. | somFree emitters automatically switches to IBM SOM 2.1 ABI on emit call and to IBM SOM 3.0 ABI on emitSL call. | ||
- | todo: add info abount | + | todo: add info about internal structures like in http:// |
- | ====== | + | |
+ | ===== 2. Appendix 2. Terminology changes and syntax construct evolution ===== | ||
+ | |||
+ | During SOM compiler evolution, some terms were changed and/or obsolete. Here is a table with terms mapping. | ||
+ | |||
+ | ^ SOM 1.0 ^ SOM 2.0 ^ somFree ^ | ||
+ | | attribute | modifier | annotation | | ||
+ | | group | {obsolete} | {obsolete} | | ||
+ | |||
+ | IBM SOM 1.0 introduced Object Interface Definition Language (OIDL) which predates Interface Definition Language (IDL). It was a simple language which provided simple objects description. IBM SOM 2.0 switched to SOM IDL, which was an extended version of OMG IDL. SOM Compiler provided OIDL to IDL conversion tools. Because of moving to IDL, '' | ||
+ | IBM SOM 3.0 added some more OMG IDL compatibility according to CORBA 2.x standards, like ''# | ||
+ | |||
+ | somFree supports SOM IDL as found in IBM SOM 3.0. | ||
+ | |||
+ | osFree somFree compiler tries to implement current IDL 4.2 Specification. It supports '' | ||
+ | |||
+ | OIDL | ||
+ | < | ||
+ | include < | ||
+ | |||
+ | class Hello; | ||
+ | |||
+ | method: | ||
+ | sayHello(string msg); | ||
+ | |||
+ | passthru C: | ||
+ | #define DEFAULT_MSG " | ||
+ | endpassthru; | ||
+ | </ | ||
+ | |||
+ | SOM IDL | ||
+ | <code idl> | ||
+ | #include < | ||
+ | interface Hello | ||
+ | { | ||
+ | implementation | ||
+ | { | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | IDL 4.2 | ||
+ | <code idl> | ||
+ | #include < | ||
+ | |||
+ | interface Hello | ||
+ | { | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ====== | ||
Line 497: | Line 529: | ||
- IBM, "OS/2 2.0 Technical Library. System Object Model Guide and Reference. First Edition, 1991" | - IBM, "OS/2 2.0 Technical Library. System Object Model Guide and Reference. First Edition, 1991" | ||
- Object Management Group, "The Common Object Request Broker: Architecture and Specification. Revision 1.1, 1991" Available: https:// | - Object Management Group, "The Common Object Request Broker: Architecture and Specification. Revision 1.1, 1991" Available: https:// | ||
+ | - Object Management Group, " | ||