KBB library

Dr. K.B.Beard

23 October 2002
Center for Advanced Studies of Accelerators
Thomas Jefferson National Accelerator Facility

The KBB personal libraries represent a set of very useful routines written over a period starting from 1986 through 2002. They exist primarially as a labor saving device and to ease porting between platforms. These libraries are used by many of my packages and programs. While the pages on my proceedures, filing system, and style were prepared some time ago for NASA Langley, the describe the essentially same system in use here at TJNAF.


C

  • KBB C library - mostly string manipulation routines

  • FORTRAN 77

  • KBB F77tricks library - misc. platform independent tricks
  • KBB F77special library - misc. platform dependent tricks
  • KBB FORTRAN callable C routines

  • Linking Notes

    Note that the actual names of the F77 libraries, libF77specialKBB.a and libF77tricksKBB.a, are unsuitable for some linkers, so the distribution provides symobolically linked shorter names too.:

    libtricks.a -> libF77tricksKBB.a
    libspecial.a  -> libF77specialKBB.a
    
    The FORTRAN libraries are interdependent on each other, but not on the C library; hence, when linking FORTRAN, use:
    -Ltricks_path -Lspecial_path -ltricks -lspecial -ltricks -lspecial
    
    and when linking C, use:
    -LkbbC_path -lkbb
    
    and when using both:
    -Ltricks_path -Lspecial_path -LkbbC_path -ltricks -lspecial -ltricks -lspecial -lkbb
    
    and on many systems, the standard math library should be specified too:
    -lm
    

    While no claims are made for the suitability, accuracy, etc., the source tree of the KBB library is available.
  • KBB - KBB library - main page
  • KBB/C - KBB C library
  • KBB/F77/TRICKS - KBB F77 TRICKS library
  • KBB/F77/SPECIAL - KBB F77 SPECIAL library
  • KP - Kevin's Process
  • BS - Beard's System
  • style - coding style

  • K.B.Beard, beard@jlab.org, 23 Oct 2002