To compile a program you use a compiler. Here is a list of compilers available on our system:
compiler fnamewhere compiler is the name of the compiler and fname is the name of the file that contains your program. Hence to compile a C program you would type:
gcc program1.cDoing so will create an executable called a.out. To run the program you would just type a.out
To compile a bunch of files called fname1, fname2, fname3 you would type:
compiler fname1 fname2 fname3To write the executable to another file besides a.out you use the "-o" option of the compiler, for example:
compiler -o outfile fname1will create an executable called outfile.
Last Update: 09/10/2002