Something interesting crossed my desk today. Â The much fabled Microsoft OS/2 2.0 SDK beta.
Sadly this does *NOT* include the operating system, just the C compiler and the SDK bits. Â As you can see, the C compiler is version 1.00.075, a full year+ before the WindowsNT 3.1 1991 pre-release which had 6.00.080. Â An interesting thing is that the C compiler can be run from 16bit OS/2. Â Unfortunately, the EXE’s produced by the SDK will not run on a production OS/2 system. Â The fault lies with the linker & resource compiler. Â However swapping those two components out for production versions seems to remedy this and produce working executables. Â The only SDK examples that don’t work correctly involve the creation of DLL’s. Â I’m sure it is again related to either the linker again, or from some gem I saw in the SDK saying you should always link by ordinal, and never by name. Â Apparently a bunch of function calls were going to change name from OS/2 1.2 to 2.0. Â It is interesting to me that going from the old Windows 3.1 to NT days we always had so much issues with people calling by ordinal vs the function name. Â It broke all the time, but it is funny to see possibly where this bad habit started.
For those who don’t know DLL’s contain a table of functions sorted by NAME, and NUMBER. Â The names have to be unique but the number depends on the order in which the DLL is linked together. Â And it is very easy for someone to accidentally change the link order, and next thing you know the ordinal are all wrong.
Otherwise, yeah the tools from the MS OS/2 2.0 beta working in 2013. Â I do believe that the object files can also be strung together with some DOS Extenders from the era to produce DPMI exe’s.
But I’ll save that exerciseÂ for later.