Re:What's the difference between the com and exe extensions?...
by int_19h on Sunday May 28, 2017 @01:39AM
(#14433222)
Digital Mars C++ (!) compiler can generate COM files as output.
http://www.digitalmars.com/download/freecompiler.html
It can be amusing trying to use the C++ standard library given the 64k code size constraint. You can pretty much forget about iostreams...
Of course, you could still access all the memory in the machine by using "far pointers" and far allocators.