I have added somLiteIR which just contains SOMTC, SOMIR and IRDUMP. This now represents the trio of SOM SOMTC and SOMIR that licensed developers could distribute.
Thanks for the pointer. I notice in the REDIST.TXT they refer to a mini-install. I could not find any further reference to that but they describe the trio of SOM.DLL, SOMTC.DLL and SOMIR.DLL as a minimum set that can be redistributed unchanged. It makes sense for that trio, without SOMTC the 'any' type is useless, and without SOMIR you will have a hard job dynamically loading classes sight unseen.
Is there a publically available 32-bit version of SOM 2.1 for Windows? I have the SOM 3.0 toolkit.
Lifecycle of critical section should be managed by DllMain
I am leaving this project alone as done, but https://github.com/rhubarb-geek-nz/somLite is where I want to make a simple SOM 2.1 version, no migrated methods or referencing counting. One problem I have is who owns the SOMClassMgr somInterfaceRepository attribute, does it get cleared up by som.dll, and is there really any reference counting done on it? Or is it just a place holder and the application is responsible for the life-cycle?
I have tracked down a problem in SOMKERN_UnbootStrap in som/somkern.c It is calling SOM_dll_term when it shouldn't. Line 1837 calls SOM_dll_term(); On Windows those SOM_dll_init and SOM_dll_term are supposed to be called in DllMain On POSIX only the SOM_dll_init should be called by pthread_once, and left dangling after that.
I have created a new fork of this project on github. It has a minimalist focus on just providing som.dll and the compiler. somLite It is still cross platform and has preview builds for Windows and Linux.
Build on Fedora 44