Etch Installation and Build Guide

Hardware Requirements

Etch requires an x86 compatible processor, at least 32MB of RAM, a swap file of 200MB, and disk space for the project directories. Users tend to be happiest when running on machines with at least 64MB of RAM and ample disk space. The disk space required by the project depends on the objects being etched and the tool used to etch. For example, a project directory that contains Microsoft Word 95 and all of the DLLs it uses, etched with the unaligned access counter tool, takes approximately 72MB.

Etch and Visual Etch have been tested to run on Windows NT V4.0. Etch also runs under Windows 95, but not all functionality is available and it has received much less testing on Windows 95; therefore, we currently recommend that Etch be used with Windows NT V4.0.

Software Requirements

A binary distribution of Etch consists of a number of directories containing all of the Etch executables and DLLs, perl scripts, instrumentation and optimization tools, and databases. Typically, users of Etch will not need an understanding of these files and directories. However, a detailed description of the structure of those directories can be found in the Guide to the Etch Source Tree document.

In addition to the Etch system and its associated files, use of Etch requires a number of other software systems to be installed for various phases of its execution or installation.

Installing and building Etch requires the following:

Running Etch requires the following software:

Building Etch

Use the following steps to build Etch from source.
  1. Open a MS-DOS shell window.
  2. Change to the top-level directory where the etch distribution lives.
  3. Depending on how you installed Microsoft Visual C++, you may have to invoke the vcvars32 environment setup script.
  4. Make sure that Visual Basic 5.0 (vb5.exe) is in the path.
  5. Invoke the script genall.bat (just type "genall") to start the build process. This script compiles the entire etch tree, and then it invokes the bin/run-setup.bat script after the tree is built.
  6. Type "vetch" at the MS-DOS shell prompt to start Visual Etch.

More information about genall

The genall script can also be used to rebuild any portion of the Etch tree when something changes. For example, if an Etch developer sends you a patch to one of the source files, you can apply that patch, and then invoke genall to rebuild your distribution. Also, there is a perl script called clean.pl that lives in the top-level Etch directory, this script can be invoked by the command "perl clean.pl" to delete all of the object files and executables from the source tree.

Creating a binary distribution

After using genall to build the distribution, you can generate a compressed tar file binary distribution with the command "nmake release". This creates a file called "etchrel.tar.gz" in the top-level etch directory. You must have the free software utilities "tar" and "gzip" installed on your machine for this to work.

Installing Etch

Environment Variables used by Etch and Etch Tools

If you want to change the location where Visual Etch creates the default project, you should use the NT control panel. In the control panel, there is an icon called System. This icon has a tab labelled Environment, and this tab lets you set environment variables that are then inherited by all MS-DOS command shells that you create. If you set the TMP environment variables to the desired value, then Visual Etch will create the default project in the directory that you specify.

The following is a list of all the environment variables used by Etch and Visual Etch.

Used by Etch and Visual Etch, set by the run-setup batch script:

Used by Visual Etch: Used by tool scripts, set by Visual Etch: Used by Etch, set by Visual Etch or the tool scripts: Used by tool run-times, set by tool scripts or Visual Etch: