next up previous
Next: Run an executable Up: Basic Steps Previous: Run sample programs

Edit and run your own program

The best is that you edit files in a CSIL machine, then copy files to meiko directory ( use ftp or rcp).

In compiling a program prog.c (or fprog.f), you can use the following command, or modify the makefile in the sample directory.

 
cc -I/opt/MEIKOcs2/include prog.c -L/opt/MEIKOcs2/lib -lmpsc -lew -lelan -o prog 
or 
f77 prog.f -L/opt/MEIKOcs2/lib -lmpsc -lew -lelan -o prog

When you compile, and run your program, make sure your current directory is under /export/tmphome.



Tao Yang
Sun Jan 21 15:34:03 PST 1996