C Programming in the Guardian Environment - U4143S


Through a series of lectures and labs, you are taught how to use both the C compiler and the native mode C compiler used with HPE NonStop™ servers, how to take advantage of various extensions, and how to interface with Guardian system procedures. In learning to use those compilers, you will become familiar with various aspects of the unique C run-time environment such as memory model issues, diagnostics, special debugging issues, and the retrieval of specific run-time and environment information. Prior C knowledge is essential.

After you successfully complete this course, expect to be able to:
  • Perform C Programming within the Guardian system procedures
  • Understand the unique aspects of the C run-time environment such as memory model issues, diagnostics, special debugging issues, and the retrieval of specific run-time and environment information

expand_more chevron_right Zielgruppe

Ideal candidate for this course:
  • System analysts
  • System programmers
  • •Programmers
  • Programmer analysts

    expand_more chevron_right Vorkenntnisse

     The following knowledge is recommended for this seminar:

    expand_more chevron_right Detail-Inhalte

    Compiling and Linking TNS C programs
    • Basic operation of the TNS C compiler
    • Compiler syntax and the analysis of a compiler listing
    • Binder commands needed to combine multiple object files to build a single executable program
    • Lab Exercise: Compile a complete C program
    • Lab Exercise: Separate compilation and binding

    Native Mode Considerations
    • Native mode
    • Benefits and constraints of native mode and the native mode development tolls
    • Process attributes and organization

    Native Mode Compilation
    • Various native mode migration issues particular to C programming
    • Using the TNS/E native compiler (CCOMP)
    • Usage of the eld utility for linking separately compiled modules
    • Lab Exercise: Use the CCOMP compiler to build runnable programs from separately compiled units

    Run-time Environment
    • NonStop server run-time environment for C programs
    • Obtaining and processing environment and startup protocol messages
    • Essentials of memory models available for NonStop C and show the four basic areas of heap, RTL, global and stack
    • 32 bit pointers and access to system procedures that require 16 bits
    • Large and wide memory models
    • Lab Exercise: Gain hands-on experience in fetching process startup information

    Tandem C Compiler Operation and Diagnostics
    • Subset of the available compiler pragmas for Tandem C
    • Compiler pragmas for the native C compiler
    • Compile-time and run-time diagnostic facilities
    • Demonstrating, with examples, various aspects of compiler operations

    Debugging C Programs
    • Basic framework of Inspect and Native Inspect commands which can be used for debugging NonStop server C programs
    • Information regarding Inspect and Native Inspect commands specifically helpful for the NonStop server C environment
    • Demonstrating a debugging session
    • Lab Exercise: Use Inspect and Native Inspect on a C program

    Interfacing to Guardian Procedures
    • Specifics of interfacing to Guardian procedures from a C program
    • Interface declarations for non-C functions
    • Usage of the Guardian procedure calls reference manual and special/problem Guardian procedures
    • Lab Exercise: Make calls to Guardian procedures needed for various terminal display options

    Mixed-Language Programming
    • Mixed language programming as it relates to NonStop C
    • Interface declarations, common run-time environment (CRE), specific alignment rules, data storage requirements, and global data sharing
    • Lab Exercise: Gain hands-on experience with interface between NonStop C and other languages such as TAL Onsite-delivery equipment requirements: 
    • One NonStop server with NonStop operating system, version H06 or later
    • 6530 terminals or equivalent PC/workstation for instructor demonstrations
    • 6530 terminal or equivalent PC/workstation per student
    • C, NMC, nld, noft, TAL and pTAL software
    • Printer for compilation listings


      Durch Angabe Ihrer E-Mail-Adresse und Anklicken des Buttons „Newsletter abonnieren“ erklären Sie sich damit einverstanden, dass ETC Ihnen regelmäßig Informationen zu IT Seminaren und weiteren Trainings- und Weiterbildungsthemen zusendet. Die Einwilligung kann jederzeit bei ETC widerrufen werden.