Compile DDLab for DOS using Watcom ---------------------------------- In older versions of windows, or in DOS, compile and run in a terminal or DOS window. In windows 7, compile in terminal, run in DOSBOX ---------------------------------- Compile DDLab for DOS In Watcom from the comand line in a terminal or DOS window For Windows 7 see further notes below. ------------------------------------------------ dos4gw.exe must be there Compile one .c file: C:\WATCOM\DDLABX13>wcc386 l_save45 /j/zq/oneatx/zp4/5r Compile and link all .c filed in directory to make ddlabm05.exe: C:\WATCOM\DDLABX13>wcl386 /l=dos4g *.c /fe=ddlabx10 /j/zq/oneatx/zp4/5r Lnk all .obj filed in directory to make ddlabm05.exe C:\WATCOM\DDLABX13>wcl386 /l=dos4g *.obj /fe=ddlabx10 /j/zq/oneatx/zp4/5r Create swapspace: C:\WATCOM\DDLABX13>set dos4gvm=maxmem#8192 virtualsize#32768 swapname#ddlab.swp Lnk all .obj filed in directory to make ddlabm05.exe C:\WATCOM\DDLABX13>wcl386 /l=dos4g *.obj /fe=ddlabx10 /j/zq/oneatx/zp4/5r try /j/oneatxr meaning of parameters --------------------- /j - change char default from unsigned to signed /zq - operate quietly /o? followed by .... n - replace floating-point divisions with multiplications - faster code a - global variables not indirectly referenced through pointers, smaller code e - expand small function inline t - time favored over space - faster code but possibly larger x - fastest exec code possible irrespective of architecture r - essential for fast code for pentium /zp4 - alignmet of structure members ?? /5r - generate 386 instructions base on Intel Pentium instruction timings ... ------------------------------------- windows 7 --------- C:\watcom>runfirstBAT (for Watcom to work, better to amend paths etc) cd ddlabx10 (the directory with *.c *.h and dos4gw.exe) wcl386 /l=dos4g *.c /fe=ddlabx10 /j/zq/oneatx/zp4/5r (compile and link) will not run in terminal window but will in DOSBOX click on DOSBOX icon Z:\>mount c c:\watcom\ Drive C is mounted as local directory c:\watcom\ Z:\>c: (will give ... C:\>cd ddlabx10 C:\DDLABX10>ddlabx10 (starts ddlab in new window in low res, (can be reset to medium or high note: In low res, the ddlab pointer should be there, confined to the DDLab window. If the ddlab pointer is missing or immobile, press the right mouse button and it should reappear. In medium and high res, mouse pointer is invisible. After running ddlab in DOSBOX, pointer might disappear -- to fix enter Ctl-Alt-Del and select cancel, the pointer reappears. To exit the DOSBOX and release the cursor enter "exit" --------------------------------------------------------------------