Setup of OpenWatcom as Mini-DOSonly for FreeDOS/FreeCOM development
This little text is to summarize a discussion
among Bart, Lucho, Arkady and Jim on the
FreeDOS-kernel list about to switch to an OpenWatcom development environment
useful for the FreeDOS kernel.
Because I intend to switch to OpenWatcom as well in the nearer future
for the FreeCOM development, I picked up the thread and pasted the posts
together for the future.
To run OpenWatcom you need an Intel 386+ with at least 8MB of memory,
because the compiler itself is a DOS32 program using a DOS extender if
running under plain DOS, but it can compile for the real-mode target.
The files are located at:
ftp://ftp.openwatcom.org/watcom/zips, which is a
symlink to most current archive of .ZIP archives. The file _layout.txt
describes the contents, however it seems to be missing except for the
release of the file.
The following archives will be required:
The following archives may be useful:
What about debugging?
To be written, yet.
Configuration / Setup
explains, that you have to setup environment variables as follows:
A sample batch file to setup the OpenWatcom variables:
- PATH: points to directories containing Open Watcom executables
- WATCOM: points to the directory where Open Watcom is installed
and is used by various Open Watcom tools to locate files
- EDPATH: points to VI/VIW configuration files
- INCLUDE: points to directories containing header files used
by the C/C++ compilers
- LIB: points to directories containing library files; note
that Open Watcom linker is able to locate Open Watcom runtime libraries
without this variable
- WWINHELP: points to the directory on the CDROM drive
where help files are located. This may minimize hard disk space
requirements. Note this is not needed if the help files are installed
on the hard disk
REM SET LIB=
REM SET WWINHELP=D:\BINW
Note: Some Open Watcom tools currently do not
function properly if installed in a directory with spaces in the name
e.g. "C:\Program Files\WATCOM". Therefore choose a directory
name like C:\WATCOM, D:\WATCOM etc. to install the