2. Setting Up The Development Environment
The development tools (i.e. compiler, linker, etc.) are MS-DOS based program. The following
explanations are supposed to use DOS prompt of MS-Windows.
2.1 Installing the C Compiler
Firstly, make the required directory as follows:
C:\> mkdir C:\SHC <ENTER>
C:\> cd C:\SHC <ENTER>
1. Insert the SHC Compiler disk no. 1/3 into your Drive A:
C:\SHC> XCOPY /S A:\*.* C: <ENTER>
2.
Insert the SHC Compiler disk no. 2/3 into your Drive A:
C:\SHC> XCOPY /S A:\*.* C: <ENTER>
3.
Insert the SHC Compiler disk no. 3/3 into your Drive A:
C:\SHC> XCOPY /S A:\*.* C: <ENTER>
4.
Insert the SHC Linker disk no. 1/1 into your Drive A:
C:\SHC>XCOPY /S A:\*.* C:\SHC\BIN<ENTER>
2.2 Setting Path and Environment Variables
It is necessary to set proper path and environment variables for compiling. Create a batch file like
setenv.bat and execute it before compiling. An example of contents of the file according to the
environment used in this guide is as follows:
echo off
SET DRV=C:\SHC
PATH=%drv%\BIN;%path%
SET SHC_LIB=%drv%\BIN
SET SHC_INC=%drv%\INCLUDE
SET SHC_TMP=C:\
Note:
SHC_LIB is used to specify where the compiler is, not for the libraries.
7