digitalmars.com                        
Last update Mon Mar 8 17:52:42 2010
Compiler & Tools Guide

Tools
BCC
CHMOD
CL
COFF2OMF
COFFIMPLIB
DMC
DIFF
DIFFDIR
DUMP
DUMPOBJ
DUMPEXE
EXE2BIN
FLPYIMG
GREP
HC
IMPLIB
LIB
LIBUNRES
MAKE
MAKEDEP
ME
OBJ2ASM
PATCHOBJ
RC
RCC
SC
SHELL
SMAKE
TOUCH
UNMANGLE
WHEREIS


Compiling
Compiling Code
C Implementation
C++ Implementation
Language Extensions
Mixing Languages
Assembly Language
Inline Assembler
Optimizing Code
Numerics Programming
Regular Expressions
Acrtused
Pragmas
Precompiled Headers
Predefined Macros
Warning Messages
Error Messages
Runtime Messages


Linking
Optlink
Switches
Module Definition Files
Operation and Design
Error Messages


Win32 Programming
Win32 Programming


DOS and Win16
Programming

Memory Models
16 Bit Pointer Types
and Type Modifiers

Handle Pointers
DOS
DOS 32 (DOSX)
Win16
Win16 DLLs
Win16 Prolog/Epilog
Virtual Memory
For 640Kb DOS



C/C++ Extensions
Contract Programming
__debug statement
__debug declaration
Dynamic Profiling
Embedding C in HTML


Porting to DMC++
Switching to DMC++
from Microsoft
from Borland
Porting Guide



EXE2BIN: Create .com Files

EXE2BIN converts .exe files to .com files. .com files are 16 bit MSDOS executables that have no MZ file header or relocation data in them. They are limited to small memory model code, 64K bytes in size, and cannot have relocation fixups.

Commands have the following format:

	exe2bin file.exe file.com
The extensions in the file names are required; EXE2BIN does not provide defaults.

For example, to create a .com program from the executable file hello.exe:

	exe2bin hello.exe hello.com 
EXE2BIN cannot do the conversion if the input .exe file contains relocation fixups or has more than 64k of code and data.