Compiling DP4 Legacy (16 bit) C Programs

Microsoft C (Ver 6, 7 & 8)

For Microsoft C we supply a batch file MC.BAT for each memory model supported (small, medium and large), showing the options we suggest you use.

If your C source is in a file called filename.c, issue the command:

MC filename or
MC filename.C

Any errors detected are found in the file C.ERR. If the compilation is successful, you can proceed to link it as an executable program, as described next.

Metaware High C

For Metaware C for each memory model we supply a compiler profile HC.PRO that configures the Metaware compiler appropriately (these work equally well with the FlexOS version of the compiler). Small, Medium,Big and Large Memory models are supported.

If your C source is in a file called filename.c, issue the command:

hc.exe -c filename.c or if you use hc.bat
hc.bat filename

If the compilation is successful, you can proceed to link it as an executable program, as described next.