Help in Using Calclab and TAM2000

The purpose of this page is to provide some help in using Calclab and TAM2000 to run C programs. Calclab does not have a C-compiler and so to run C from Calclab, you must have a TAM2000 account (which can be obtained through ACCESS and is paid for by your computer access fee - contact Computer and Information Services for details, 847-8447).

The general idea is to use the easy-to-use Calclab editor, called Asedit, to create your C-program. This editor is much easier to use than the standard UNIX editor, VI, which you would use if you were working on TAM2000 directly on a VT-100 terminal. Then, you use FTP (which stands for File-Transfer- Protocol) to copy the C-program to TAM2000. You can compile and run your program on TAM2000. Details are given below.

Using the Editor, Asedit

To start the Asedit editor, use your mouse to click on the grey background to pull up the Root menu. Then click on Programs; then click on Editors; and finally click on Asedit. A window should appear on which you can start entering text (the commands in your C-program, for example). To save the program to a file, click on File (at the top of the window) and then on the Save as menu item. A dialog box should appear on which you enter the name you wish for your program (such as numerical.c). To open up a file in the editor, again click on File and then Open.

An easy way to view the files in your account is to use the file manager, Xdir. From the root menu (click on the grey background again), click on Programs and then Xdir. A window should appear with a listing of all your files (and directories).

Using Xdir to FTP a file to TAM2000

Now that you have created a file, called numerical.c perhaps, you can ftp it to TAM2000 using Xdir. As above, invoke Xdir from the Root menu by clicking on Programs and then Xdir. At the top of the Xdir window, click on Connect; then click on Remote. A dialog box will appear which will allow you to log-on to TAM2000 by typing tam2000 for the host name and then your tam2000 account name for the user name. Then click on Connect. You will be prompted for your password. A second Xdir window will appear which will list all your files on TAM2000. To copy a file from Calclab to TAM2000, take your mouse and drag the desired file from the Calclab window to your TAM2000 window. To disconnect, click on File and then Quit.

Compiling C-code on TAM2000

Once your program, say numerical.c, is copied to TAM2000, you can compile it by entering the following command


gcc -o numerical numerical.c -lm

This command compiles the source code, in a file named numerical.c, and returns the object code in a program named numerical. Of course, you can make up your own names for these files (but your source code should end with a .c suffix). After you correct any compiling errors, you can run your compiled program (named numerical in our example) by simply typing the name of the object code (in our example, type numerical).