Diamond Libraries

Top  Previous  Next

This section describes:


Diamond's implementation of the ANSI C run-time library functions, as described in chapter 4 of the standard;

some functions included for compatibility with other implementations of C;

functions supplied by 3L to support Diamond's special multi-processing facilities.

 

Diamond comes with several versions of its run-time library differing in the processors they were built to support. Currently there are libraries for the C67 floating-point processors, the C64 processors, and generic C6000 processors. Each of these variants comes in two flavours: full and stand-alone.

 

A full library provides all the functionality that Diamond has to offer. In particular it includes all the functions that are used to access a server program on the host. These include the I/O functions, such as printf and scanf, and functions to communicate with the host operating system, such as time and system. Tasks linked against a full library start by registering with the server, opening the standard input and output streams, and optaining data for argc and argv.

 

A stand-alone library is the equivalent full library with none of the server communication functions. Tasks linked against a stand-alone library are known as stand-alone tasks and they cannot access the server.