TAL Programmer's Guide
TAL and C Guidelines
Mixed-Language Programming
17–14 096254 Tandem Computers Incorporated
This example shows a large-memory-model C module that calls a TAL routine:
C Code
#include <stdioh> nolist
short arr[5]; /*stored in extended segment */
_tal void C_Name = "tal^name" (extptr short *);
void func1 (short *xarr)
{
 C_Name (xarr);
 printf ("xarr[2] after TAL = %d", xarr[2]);
}
main ()
{
 arr[4] = 8;
 func1 (arr);
}
TAL Code
PROC tal^name (a);
 INT .EXT a; !32-bit pointer
 BEGIN
 a[2] := 10;
 END;










