DDLab for DOS ------------- In older versions of Windows, compile and run in a DOS or terminal window. In windows 7 compile in a terminal window, run in DOSBox (see note below) ------------- Compile DDLab for DOS with Open Watcom C/C++ version 1.9 In thhe Watcom directory and DDlab subdirectory (with *.c *.h and dos4gw.exe files) from the command line in a DOS or terminal window ... 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 ... ------------------------------------- note: in windows 7, compile in terminal window as above, run with DOSBox C:\watcom>runfirstBAT (for watcom to work, better to amend paths etc) cd ddlabx10 (with *.c *.h and dos4gw.exe) wcl386 /l=dos4g *.c /fe=ddlabx10 /j/zq/oneatx/zp4/5r (compile and link) the executable ddlabx10.exe is created will not run in the terminal window but will in DOSBox (an MS-DOS emulator) 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, the mouse pointer is invisible. After exiting DDLab, the pointer in the DOSBox terminal might disappear -- to fix, enter Ctl-Alt-Del and select "cancel", the pointer should reappear. To exit the DOSBox terminal enter "exit" --------------------------------------------------------------------