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 (runfirstBAT), 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\ddlabz03>wcc386 l_save45 /j/zq/oneatx/zp4/5r Compile and link all .c filed in directory to make ddlabm05.exe: C:\watcom\ddlabz03>wcl386 /l=dos4g *.c /fe=ddlabz03 /j/zq/oneatx/zp4/5r Lnk all .obj filed in directory to make ddlabm05.exe C:\watcom\ddlabz03>wcl386 /l=dos4g *.obj /fe=ddlabz03 /j/zq/oneatx/zp4/5r Create swapspace: C:\watcom\ddlabz03>set dos4gvm=maxmem#8192 virtualsize#32768 swapname#ddlab.swp Lnk all .obj filed in directory to make ddlabm05.exe C:\watcom\ddlabz03>wcl386 /l=dos4g *.obj /fe=ddlabz03 /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) Win32 BAT file set cd ddlabz03 (with *.c *.h and dos4gw.exe) wcl386 /l=dos4g *.c /fe=ddlabz03 /j/zq/oneatx/zp4/5r (compile and link) the executable ddlabz03.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:\> C:\>cd ddlabz03 (the subdirectory) C:\ddlabz03>ddlabz03 (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 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". --------------------------------------------------------------------