Guidelines for writing diagnostic programs using C++

  1. The standard library libC.a is not supported. Do not use this library's API.
  2. All of the language support functions in libC.a need to be statically linked at compile time. Use -lCns.a and -bI:/usr/lpp/xlC/lib/libC.imp arguments to compile with xlC.
  3. Use an exception only for exceptional cases. For example, an exception should not be used for a program's normal flow of control.
  4. Never throw an exception across a shared library and executable boundaries.
  5. No kernel extension shall be written in C++.