Guide to Unix/Commands/SW Development

From Wikibooks, open books for an open world
Jump to navigation Jump to search

adb[edit]

A debugger. A GNU alternative is gdb.

Links:

ar[edit]

Creates an archive from files. The usual use is to create an archive from compiled object files, where the archive is fed to a linker.

Links:

as[edit]

Compiles assembly source code.

Links:

cc[edit]

Compiles C language source code. A GNU alternative is gcc. Another alternative is clang.

Links:

cflow[edit]

Outputs call graph for C language source code.

Links:

ctags[edit]

Creates a tags file from source code. The tags file is a text index to object definitions and object uses where objects include variables, functions and the like. The file helps users and tools such as text editors navigate source code. Emacs uses its own variant called etags; alternatively, you can use Exuberant ctags with option -e to generated Emacs-format tags file.

Links:

cxref[edit]

Outputs cross referencing information on C language source code files.

Links:

f77[edit]

Compiles Fortran 77 source code. GNU Fortran compiler used to be invoked via g77, and now is invoked via gfortran.

Links:

ld[edit]

Links object files into an executable.

Links:

lex[edit]

Generates C language source code for a lexical analyzer based on provided lexical rules.

Links:

lint[edit]

Outputs suspect things in C language source code.

Links:

make[edit]

Drives a file production process based on a specification of dependencies between production input files and output files. The file production process so driven is usually compilation and linking.

Links:

nm[edit]

Outputs symbol names found in an object file or a similar file having symbols in it.

Links:

  • nm, opengroup.org
  • nm man page, man.cat-v.org
  • nm, freebsd.org
  • nm in GNU Binary Utilities, sourceware.org

objdump[edit]

Outputs information from object files, such as disassembly. Not covered by POSIX. A similar tool for macOS is or used to be otool.

Links:

  • objdump, freebsd.org
  • objdump in GNU Binary Utilities, sourceware.org
  • otool source code, opensource.apple.com

prof[edit]

Profiles a program, identifying code locations that cost most time.

Links:

strip[edit]

Removes certain information from executable and similar files resulting from compilation, unnecessary for certain purposes.

Links:

yacc[edit]

Generates C language source code for a parser based on a provided grammar specification. Stands for yet another compiler compiler. A GNU alternative is bison, compatible with yacc.

Links: