Skip to main content

     
 

z/TPF C & C++ Architecture and Internals Class Outline

Title: z/TPF C & C++ Architecture and Internals

Overview: This class is designed to show students who have z/TPF knowledge and basic C/C++ programming experience how to efficiently put C/C++ to work in their respective z/TPF environments.

Audience: z/TPF programmers with minimal understanding of the implementation of ISO/C and C++ in the z/TPF environment.

Educational Objectives:

  • To provide TPF 4.1 programmers with the ability to test and analyze z/TPF system dumps involving programs written using ISO/C and C++.

    Topics:

  • Heap storage
  • Structure
  • Initial ECB structure
  • What happens when storage needs to be added
  • Allocate process
  • Deallocate process
  • Reallocate process
  • Configuration of ECB heap
  • Hean in dumps
  • Heap related dumps
  • Heap corruption
  • Stack storage
  • Structure
  • Initial ECB structure
  • What happens when storage needs to be added
  • Stack during function calls
  • Stack during function returns
  • Locating variables and other information on the stack
  • Stack in dumps
  • Linkage
  • Internal to a CSO
  • Between CSOs
  • Between CSO and BSO
  • Between BSO and CSO
  • Establishing linkage
  • Parameter passing
  • Linkage in dumps
  • GCC
  • Detailed discussion of the options that need be used for TPF
  • ELF
  • Linkage
  • Optimization
  • Compiler listing
  • Find code
  • Find variables
  • Trace and debug information

    Prerequisites:

  • An understanding of the 'C' language is needed as a basis for learning about the implementation of various 'C' and 'C++' language elements.
  • S/390 Assembler knowledge is needed as a basis for learning about sections of a 'C' compiler listing output, as well as being able to look at tables and structures in their hexadecimal representation in sample system dumps. Consequently, some basic dump reading skills are assumed.

    Format: Standard lecture-type

    Maximum Class Size: 15

    Duration: Public: 3 days. Private: 3 days or variable if customization required.

    Customization Possible: Yes, based on customer requirement and instructor availability.

    Required Course Environment:

    The customer shall provide, at no cost to IBM, a suitable classroom environment as outlined below.

    The classroom environment would need to be available to the IBM instructor(s) at least two hours prior to the start of class on the first day of class. The classroom environment shall include the following:

  1. Print one copy of the course for each student and place in a binder.
  2. Print one Completion Certificate in color for each student (plus a couple extras) and give to instructor upon his/her arrival, if desired.
  3. One Name tent for each student
  4. Two broad markers that the students can use to write their names on the name tent.
  5. One pen or pencil for each student
  6. Laptop projector (able to project 1024 x 768 pixels) for use with a PC video port
  7. Extension cords for laptop and/or laptop projector if needed.
  8. Screen for laptop projector
  9. White board and erasable markers and/or large writing tablet on a stand and permanent markers