Getting
Started with C on the Alpha1
Accessing the Alpha1
Click on icon Telnet to Alpha1
Type in your User Id and press
enter
Type in your password and press
enter
To create or edit a file
type $ EDIT filename.C
Note: filename must be 8 characters (letters or
numbers) or less
Remember Backspace is now Ctrl
Backspace.
To save file and exit editor press
Ctrl Z
To execute the C program
Remember this is a three step
process. Each step must be error free
before going to next step.
Step 1: Compile
type $ CC filename.C/LIST
Note: If you have errors, you must correct them before going to
the next step.
Suggestions on
how to find errors.
1. Print the listing file.
type $
PRINT filename.LIS
2. Make corrections to source
file.
Look at the printout (filename.lis).
type $
EDIT filename.C
Make the corrections and save.
3.
Recompile the program (see step 1: Compile)
Step 2: Link
type $ LINK filename.OBJ
Note: If you have errors with this step, please
seek additional help.
Step 3: Run
type $ RUN filename.EXE
Note: If you have errors, you may
need to reexamine your program C logical errors.
To print files
type $ PRINT filename.C
Note: You can print any files except .OBJ or .EXE
files. You many print the listing file
(.LIS), source file (.C), or any other file you create
such as PRINTER.DAT
To rename files
type $ RENAME oldfilename.extension
newfilename.extension
C example RENAME EX.FIR NEW.C
To copy files
type $ COPY oldfilename.extension newfilename.extension
To delete file
type $ DELETE filename.extension;version
C
example DELETE EX.EXE;1
To exit the Alpha1
type $ LOGOFF