CSCI 1300::Software Package Notes
August 2004
Contents:
Description:
This page provides programmer's tools for CSCI 1300 at the
University of Colorado. All tools are free and may be used by
programmers here or elsewhere. The tools include:
-
Minimalist GNU Windows 32 Tools with
- g++ (Version 3.3.1),
- gdb (Version 5.2.1),
- make (Version 3.8),
- win32 api library (Version 2.5),
- and more from bintools (2.13.90) and elsewhere:
addr2line, ar, as, awk, bison, c++, c++filt, cc, cmp, dlltool, echo,
ed, egrep, ex, fgrep, flex, flex++, g++, gasp, gawk, gcc, gcov, gdb,
genclass, gperf, gprof, grep, gunzip, gzip, ld, m4, make, nm, objcopy,
objdump, protoize, ranlib, red, rm, sed, size, strings, string,
tail, tar, unprotoize, wc, windres, zcat.
- Windows Emacs editor
- Elvis vi editor
- BGI graphics library for the Gnu compiler
Original sources are listed at www.cs.colorado.edu/~main/cs1300/authors.html
Exercises for Students:
Notes for Home Installation:
If you are working on your own machine, then download these two
files to the top level of one of your hard drives (such as C:)
The first of these files is large (over 20MB) and will take about
four hours to download with a typical modem. If you prefer,
ask your instructor about getting a CD with those two files
(so you can then copy those two files from the CD to your C: drive).
Once you have the two files, go to
the Start|Programs|Accessories menu. Choose the Command Prompt option, which
will open an MS-DOS window. From within this window, type the following series
of commands. If you copied the two files to a drive other
than C:, then use that drive letter in these instructions:
C:
CD \
unzip cs1300.zip
C:\cs1300\gocs
After running the unzip command, you should have a new directory
(called C:\cs1300
). You may remove the
large cs1300.zip
file.
Now the software is installed. In the future, each time you open an MS-DOS window,
you need to tell the operating system about the software by running
just this one command:
C:\cs1300\gocs
Notes for Use in the CU Engineering Center:
If you are working on a PC in the CU Engineering Center, then
you don't need to download or unzip any files.
Just go to
the Start|Programs|Accessories menu. Choose the Command Prompt option, which
will open an MS-DOS window. From within this window, type the
following
command:
H:\cs1300\gocs
What the Installation Provides:
After the installation is complete, you can execute any of these
commands from an MS-DOS command line:
-
addr2line, ar, as, awk, bison, c++, c++filt, cc, cmp, dlltool, echo,
ed, egrep, emacs, ex, fgrep, flex, flex++, g++, gasp, gawk, gcc, gcov,
gdb, genclass, gperf, gprof, grep, gunzip, gzip, ld, m4, make, nm,
objcopy, objdump, protoize, ranlib, red, rm, sed, size, strings,
string, tail, tar, unprotoize, wc, windres, zcat.
OUT OF ENVIRONMENT SPACE:
How To Fix This Problem
Running or installing DOS or Windows tools can sometimes result in the
message "Out of Environment Space." This section describes three ways to
usually solve the problem.
Method 1:
For
Microsoft Windows 95/98: You might need to
modify the desktop shortcut to Emacs as follows:
- Right-click on the emacs shortcut on the desktop, and select
Properties.
- You probably want to set the Close on Exit
checkbox to be set. This will close the extraneous DOS prompt used
each time to launch Emacs.
- Set the input field under the Memory tab labeled Initial
Environment to be 4096.
- Click Ok.
Method 2: Changing the DOS Session Properties
This method will work if you don't need too much extra space and
you are running the tools from the MS-DOS prompt.
- Start the DOS session and make sure that it is a window rather
than full-screen. If it is full-screen, then press Alt-Enter to change
it to a window.
- Click on the MS-DOS icon in the top left corner of the window.
- Select Properties from the pop-up menu.
- Select the Memory tab from the command box.
- Click the arrow on the Initial Environment box. Move down in the
box as far as possible (by clicking the downward arrow). Click on the
biggest number that you see in this box.
- Click OK in the command box.
- Click OK in the MS-DOS Prompt information box.
- Stop the DOS Session by clicking the X in the top-right or by
typing the command "exit".
- Restart a new DOS session and try running your commands again.
Method 3: Changing the config.sys file
This method works for Windows 95. I'm not certain whether it also
works for later versions of Windows.
- From a DOS prompt, use the edit command to open the file
C:\config.sys.
- Find a line that begins: shell=...
- Within this line, find a parameter that starts /e:... and increase
the size of the number after the /e:. For example, I increased mine to
/e:4096.
- If there was no /e:... on your line, then you can add /e:4096 at the
end of the line. If there was no shell= line, then you can add this
one:
shell=C:\command.com /e:4096 /p
Uninstallation Notes:
To uninstall this software package, simply delete the CS1300 directory
from your hard drive.
Michael Main