CRE Programmer's Guide

Hewlett-Packard Company528146-004
i
Common Run-Time
Environment (CRE)
Programmers Guide
Glossary Index Examples Figures Tables
What’s New in This Guide xiii
Guide Information xiii
New and Changed Information xiii
About This Guide xv
Audience xvi
Organization xvi
Additional Information xvii
Hypertext Links xix
1. Introducing the CRE
Mixed-Language Programming Without the CRE 1-1
What Is the CRE? 1-2
Selecting a Run-Time Environment 1-5
Advantages of Using the CRE 1-8
2. CRE Services
Comparing the CRE in the OSS and Guardian Environments 2-2
Standard Files 2-2
$RECEIVE 2-3
Memory Organization
2-3
Traps and Exceptions
2-3
Program Initialization 2-4
Program Termination 2-4
Error Reporting 2-5
Standard Functions 2-5
CRE Services 2-5
Process Pairs 2-6
Writing TAL Routines That Use the TNS CRE 2-6
Writing pTAL Routines That Use the Native CRE 2-8
Program Initialization 2-9
Designating a Main Routine 2-9
TNS CRE Initialization 2-10