muta...@gmail.com
2021-04-15 20:40:45 UTC
I had previously proposed having an osfunc() call
in PDPCLIB which would turn into an execution of
the C library in PDOS-generic. This would then
create new executables, not compatible with
anything except PDOS-generic.
However, I've thought of a compromise. What I
can do is have a flavor of PDOS-generic that
basically exports msvcrt.dll.
So PDPCLIB-based applications that have been
built with msvcrt will work on both normal
Windows and modified PDOS-generic. As well
as PDOS/386.
I note that the way I currently build executables on
Windows, msvcrt.dll is the only dependency, there
is no kernel32.dll listed. My current msvcrt.dll does
use kernel32.dll, but my new one tied to
PDOS-generic presumably won't, as I'm not actually
trying to support the Windows API in PDOS-generic,
just C90.
On the mainframe I think I will support the original
osfunc() plan, as I don't see any way around needing
new executables for that environment. I'm not sure
if the msvcrt.dll paradigm could be exported as-is
to the mainframe and whether that would serve
some purpose. Presumably this would mean
PE/COFF executables on the mainframe, so that the
DLL dependencies could be listed.
Maybe that would be a reasonable replacement for
PDOS-generic - PE/COFF executables dependent on
msvcrt.dll, available on every platform, starting with
the mainframe.
BFN. Paul.
in PDPCLIB which would turn into an execution of
the C library in PDOS-generic. This would then
create new executables, not compatible with
anything except PDOS-generic.
However, I've thought of a compromise. What I
can do is have a flavor of PDOS-generic that
basically exports msvcrt.dll.
So PDPCLIB-based applications that have been
built with msvcrt will work on both normal
Windows and modified PDOS-generic. As well
as PDOS/386.
I note that the way I currently build executables on
Windows, msvcrt.dll is the only dependency, there
is no kernel32.dll listed. My current msvcrt.dll does
use kernel32.dll, but my new one tied to
PDOS-generic presumably won't, as I'm not actually
trying to support the Windows API in PDOS-generic,
just C90.
On the mainframe I think I will support the original
osfunc() plan, as I don't see any way around needing
new executables for that environment. I'm not sure
if the msvcrt.dll paradigm could be exported as-is
to the mainframe and whether that would serve
some purpose. Presumably this would mean
PE/COFF executables on the mainframe, so that the
DLL dependencies could be listed.
Maybe that would be a reasonable replacement for
PDOS-generic - PE/COFF executables dependent on
msvcrt.dll, available on every platform, starting with
the mainframe.
BFN. Paul.