Language: Cmd. to run: Installed on: Ada See "helpme programming" C cc All Unix machines C++ CC All Unix machines GNU C gcc HP Unix machines [ See below ] GNU C++ g++ HP Unix machines [ See below ] Visual C++ ALL Windows NT machines [ See below ] Fortran-77 f77 HP Unix machines Fortran-90 f90 SGI Unix machines Pascal pc All Unix machines Prolog prolog All HP Unix machines Scheme scheme All HP Unix machines
c:\temp, copying them to and from your home directory when you log in or out. Microsoft technical support tells us that this was done intentionally.
Each Unix compiler has a man page associated with it -- see the man page on that command for more information (except for scheme).
The Unix compilers, by default, will compile to a file a.out unless you specify otherwise with the "-o filename" switch. If you find you can not execute this file by simply typing it's name at your unix prompt, try typing ./filename and see if that works. If it still doesn't work, ask a lab assistant for help.
Note: Our newest HP Unix workstations feature the new PA-8000 series processors. These processors are much faster than those on the older workstations, but by default programs compiled on the new workstations will not run on the old workstations. The compiler will usually print a warning message if your are on one of the newer workstations, or you can use the command
/usr/local/sbin/ecss-sysident -arch-detail command to check what machine you are on: If it's PA2.0 or higher, you are on a newer workstation; anything lower is an old workstation. You can use the compiler flag
+DA1.1 to produce programs that will run on the older workstations.
cc -Aa -D_HPUX_SOURCE ansi-prog.c
Where ansi-prog.c is the name of your C program.
cc prog1.c -o prog1
pc assign2.p -o assign2
f77 old.f -o old