Some of you may be aware that Microsoft Windows is available for both x86 32-bit and 64-bit and ARM 32-bit and 64-bit, and all 4 environments have an msvcrt.dll
And you may also be aware that PDOS-generic from pdos.org has a mini-clone of all 4 environments. Although Microsoft isn't interested in the 68000 for obvious reasons, I am, and most of the infrastructure to port PDOS-generic, including win32 mini-clone capability, to basically anywhere, with minimal fuss from the OS side (the linker pdld needs some work though), is already in place.
As first proof of that, now have a Windows 68000 environment, so you can have PE/COFF 68000 executables running at native 68000 speed on any 68000 environment.
Here it is using qemu-m68k (user, not system), transparently, on Linux:
root@kerravon2-pc:/home/kerravon/w2kshare# ./bios.exe pdos.exe scratch.vhd
bios starting
type in "dir" to get a list of files
type in "type" to show the contents of a file
type in "e/me/uemacs file.txt" to edit a file
ctrl-x, ctrl-s saves; ctrl-x, ctrl-c quits
about to execute program with entry point 3FB3A02C
welcome to PDOS-generic
running as pdos.exe
before printing parm
argv1 is scratch.vhd
about to open disk
done open
lba is 80
fat type is FAT12
about to call app at address 3E457954
welcome to pcomm
type help for help
enter a command
:pdptest.exe abc def
about to call app at address 3E54D000
welcome to pdptest
main function is at 3E54D1EC
allocating 10 bytes
m1 is 3E456030
allocating 20 bytes
m2 is 3E456080
stack is around 407FF9D4
printing arguments
argc = 3
arg 0 is <:pdptest.exe>
arg 1 is <abc>
arg 2 is <def>
return from app is hex 0
enter a command
exit
return from app is hex 0
return from called program is hex 0
enter command, exit to exit
bios exiting
root@kerravon2-pc:/home/kerravon/w2kshare#
Executable pdptest.exe was built with pdpclib/makefile.s68
bios.exe was built with generic/makebios.l6g and that makefile points to the other things.
The makefiles use tools available on the PDOS/386 hard disk image at pdos.org
And the executables I produced myself can be found in a temp.zip attachment here:
https://eab.abime.net/showthread.php?t=120813
Next stop might be Windows on the IBM mainframe. But I was planning on getting z/OS PCDOS out the door first, and that's waiting on Dat from Vietnam to debug.