MS-DOS related thread
This is a discussion on Ms-dos within the Windows Programming forums, part of the Platform Specific Boards category; MS-DOS related thread...
I want to know how I can obtain a makefile for .COM extention if i have to do that because i want to make an MS-DOS Application. Help?
You can tell the linker to output a flat binary though.
EDIT: MinGW's tools aren't good for that, mind.
Devoted my life to programming...
What compiler are you using?
What operating system will this program be using, and the exact version?
16 bit .exe files ARE MS-DOS applications, without being converted to a .com file. The .com file was just an alternative executable format.
Assuming you have a 16 bit .EXE file that can run under MS-DOS, then 16-bit development environments (compiler and linker in combination) would output such an executable by default. MS-DOS provides a utility called exe2bin. The command line "exe2bin filename.exe filename.com" would take filename.exe and convert it to an equivalent filename.com.
Not all executable files can be converted. The input executable had to be a 16-bit executable (32-bit executables, such as those generated by 32-bit development environments cannot be converted). One side effect of that is that the resident code (aka code AND data) could not total to more than 64K. IIRC, there were also other constraints, such as no overlays in the executable, no use of high or extended memory, and a few other constraints.
Right 98% of the time, and don't care about the other 3%.
I'm writing something for a command line console - would this count as DOS programming as I have a quick question and I'm not sure if it'll directly relate to MS-DOS.
Edit: I've just tested it with DOS-Box and it won't run, so I guess it's not a true MS-DOS problem, sorry guys.
Last edited by S_Bebbers; 09-04-2012 at 02:18 PM.