Privacy and Security Notice

Archived Messages for C_CLASS98@cebaf.gov: General command help on unix systems

General command help on unix systems

dave (buckle@CEBAF.GOV)
Tue, 17 Feb 1998 14:23:22 -0500

This is a multi-part message in MIME format.
--------------73DD7B0372AF1503EB943368
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

To: C Class members (c_class98@jlab.org)
Here are some general comments on how to use c compilers on the JLab Unix systems
(Common User Environment , hosts)

( in what follows ">" represents the system prompt )

How to get help.
> man -k xxxxxx xxxxxx is a topic or key word to help you identify what you want to
look up.

example:
> man -k compile

cccp, cpp (1) - The GNU C-Compatible Compiler Preprocessor.
g++ (1) - GNU project C++ Compiler
gcc, g++ (1) - GNU project C and C++ Compiler (v2.7)

and much more

How to launch the C compiler(s)
on most machines there is a default C compiler launched by:
> cc file_name.c
If typed in this manner you will generate one or more files and perhaps some
error messages . The executable will be in "a.out" , an unfortunate historical standard.
do:
> man cc
to see more options two of which are:
-o path_name to change the output file name
-g to produce debugger data in the output file.
> man -g -o my_test_executable my_test.c

You may use the gnu ( gnu not unix ) compilers if you wish by doing:
> setup gnu

> gcc -option(s) my_file.c

You may execute the program debugger (one of several ):
> dbx my_test_executable
(dbx)

type help at the (dbx) prompt to see what commands are available.

Hope this helps. For more information I strongly suggest contacting some
other c programmers here at Jefferson Lab.

--------------73DD7B0372AF1503EB943368
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for David Buckle
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: David Buckle
n: Buckle;David
org: Jefferson Lab
adr: Physics Division, MS12E;;;Newport News;VA;23606-4350;USA
email;internet: buckle@cebaf.gov
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard

--------------73DD7B0372AF1503EB943368--