Re:What's the difference between the com and exe extensions?...
by bluedino on Saturday May 27, 2017 @12:14PM
(#14430670)
Your C (or more likely, Pascal) compiler just didn't allow you to use it in their 'tiny' memory model
[ Parent
| on HN ]
Re:What's the difference between the com and exe extensions?...
by WalterBright on Saturday May 27, 2017 @12:44PM
(#14430781)
The Datalight C compiler would generate COM files that provided for 64K code and 64K data, as long as the code + static data was < 64K.
Of course, you could still access all the memory in the machine by using "far pointers" and far allocators.
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...