I want to create a .com file. I want to know the procedure, how to make a COM (.com) file from C source code file.
Please suggest.
Printable View
I want to create a .com file. I want to know the procedure, how to make a COM (.com) file from C source code file.
Please suggest.
1. What for?
2. What OS?
First of all you have to find an ancient 16-bit compiler. I think that the old Borland Turbo C++ suites now are available for free so go ahead and search.
Then you have to find an OS that is able to run a com-file (and also the compiler). Whithout knowing for sure I would guess that it means you have to go back to something like Windows Millenium edition or earlier. If the executable is well behaved (don't have wild accesses to hardware) it might also run in some of the more recent NT based 32 bit versions of Windows but I don't know if and if so when the support for .com ended.
Sir, OS- Windows 7. Sir I want to create .com file of any C Source code file.
Sir just to learn that how to create.
You were just told how to create. You need a compiler that can target MS DOS. The most known are Borland C++ 3.x, MS Visual C++ 1.x, Watcom C++ something, I don't remember, 8 or 9, or maybe 10. You can try Open Watcom, maybe they still support DOS just for fun.