Programming C for z/TPF
Overview
This course
is designed to give Application Development staff a practical
introduction to applying the C Programming language in the z/TPF
Environment. It is a practical 5 day course with lectures, interspersed
with exercises to consolidate the knowledge gained.
Pre-Requisites
Prior
Mainframe Assembler and z/TPF knowledge is required. Students should have
attended the 5 day C
Programming class or have prior commercial experience of C
programming.
Audience
Programmers
who are required to program in z/TPF using the C programming language.
Student
Numbers
The maximum recommended student to instructor ratio is 12:1
Objectives
On
completion of the syllabus students will be able, with the aid of course
notes, to:
· Access the ECB in an C Environment.
· Write C Headers to map existing Dsects.
· Interpret C Listings and .mak files.
· Use z/TPF API functions in C programs
· Interface with existing Assembler programs.
· Analyse C dumps to interpret C code and storage areas.
Course
Outline
Introduction
|
Objectives
Terminology
The CSO
|
The
ECB
|
Overview
What happened to those registers?
Using ecbptr()
|
The
Pre Processor
|
Using
#pragma options
Writing and using macros
Conditional Compilations
|
Header
Files
|
Standard
z/TPF Header Files
Converting a DSect to a Header File
Packing structures
Pitfalls
|
Listings
|
Review
The Pseudo Assembler
Optimised Code
|
Functions
|
Prolog
Epilog
Efficient storage usage
|
Assembler
Programs
|
Interface
TPF_regs structure
64 bit vs 31 bit
|
Existing
APIs
|
Program
management
Input/Output
Working storage
File handling
Globals
Error handling
File Pool Management
|
Program
Interfaces
|
C
to C
C to Assembler
Assembler to C
Parameter List
|
Introduction to Dump
Analysis
|
C/C++ Register Conventions
Module Map
Identifying variables, parameters and Static storage
|
back to
top
|