Programming Applications

Gcc

Location The appropriate /applic/nir/gnu subdirectories.
Description The GNU C ANSI compiler.
Man Page /applic/nir/gnu/man/man1/gcc.1
WWW Page GNU GCC Info Page
Usage
Check the man page for specific info, but you use gcc like any other compiler:
# gcc -o test test.c

G++

Location /applic/nir/gnu/bin/[g++|c++]
Description The GNU C++ compiler.
Man Page /applic/nir/gnuman/man1/g++.1
WWW Page A useful guide to the GNU C++ Library
GNU G++ Info Page
Usage
Similar to gcc:
# g++ -o test test.cc

F77

Location /applic/SUNWspro/bin/f77
Description The SunSoft F77 compiler.
Man Page /applic/SUNWspro/man/man1/f77.1
WWW Page Nope.
Usage

Similar to gcc:

# f77 -o blah blah.f


GDB

Location /applic/apx/gnu/bin/gdb
Description The GNU debugger.
Man Page /applic/apx/gnu/man/man1/gdb.1
WWW Page Debugging with GDB
Usage
In general, you compile your programs with the -g option and then debug the resulting program like this:
# gdb test
After gdb starts up, you enter commands to set break points and such and then type:
gdb> gdb command-line-options-to-program

DDD

Location /applic/apx/bin/ddd
Description The Data Display Debugger is a professional-quality, graphical interface to gdb, the GNU debugger.
Man Page /applic/apx/man/man1/ddd.1
WWW Page The Data Display Debugger Home Page
Usage
Just execute ddd on the command line (in the background if you like) and go from there. Most of it is pretty obvious and the documentation on the web site and man page is decent.

Perl

Location /applic/nir/gnu/bin/perl
Description Version 5.0pl2 of the script language.
Man Page /applic/nir/gnu/lib/perl5/man/*
WWW Page www.perl.com
Usage
Similar to writing a script program. The first line of the program should be:
#!/applic/nir/gnu/bin/perl

Perl/Tk

Location /applic/nir/gnu/lib/perl5/site-perl/Tk
Description Allows perl to interface the Tk graphics package.
Man Page Various in /applic/nir/gnu/lib/perl5/man/man3/
WWW Page
Usage
Check out the online docs. Your perl scripts should have headers looking like:
#!/applic/nir/gnu/bin/perl -w
use lib qw(blib/sun4-solaris blib/lib); # I think sun4-solaris is right.
use Tk;
require Tk;

Tcl/Tk

Location Relevant subdirectories of /applic/nir/
Description Tcl is a scripting language and Tk is a GUI library designed to work with it. Simplifies (a little) the creation of graphical interfaces.
Man Page In and about /applic/nir/man with special attention to wish(1) and tclsh(1).
WWW Page Tcl/Tk Project at Sunlabs
Usage

Forth

Location /applic/nir/bin/forth|cforth
Description This is Mitch Bradley's CFORTH.
Man Page Nope.
WWW Page Nope. But check out Forth Intro.
Usage
If you type forth or cforth, a script is executed which is equivalent to:
#!/bin/sh
/applic/nir/cforth-1.55/forth /applic/nir/cforth-1.55/forth.dic


©1996 kevin mcfadden