13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NAME array within the activation record of the host program that containsit. The location is given as a word offset, relative to the start of the dataarea. There is no POINTERLIST array associated with a PUBLDEF Linkerinformation type.The CONSTREF Linker information type is used to link constants in anassembled procedure to a global constant in the host program. TheCONSTREF Linker information type results from a .CONST directive in anassembly-language procedure. The NAME array specifies a constant that isreferenced in the segment, and defined as a global constant in the hostprogram. The FORMAT field is WORD. The NREFS field specifies thenumber of pointers in the POINTERLIST array (each of which points to adifferent reference). The Linker must place the constant value into alllocations pointed to by the POINTERLIST array.The CONSTDEF Linker information type declares a global constant in thehost program. A CONSTDEF Linker information type is generated for eachglobal constant in the host program that appears in a CONSTANTdeclaration. The CONS TV AL field contains the value of the declaredconstant. There is no POINTERLIST array associated with a CONSTDEFLinker information type.The PRIVREF Linker information type is used to indicate a reference tovariables of an assembly-language procedure or Regular Unit, to be stored inthe host program's global data area, and yet be inaccessible to the hostprogram. The PRIVREF Linker information type results from either a.PRIVATE directive in assembly language, or by the use of global variablesdeclared in the IMPLEMENTATION of Regular Units. The FORMAT field isalways WORD. The NWORDS field specifies the amount of space, in words,to be allocated. The NREFS field specifies the number of pointers in thePOINTERLIST array. The Linker must add the offset of the start of theallocated area within the global data area to all words pointed to by thePOINTERLIST array.The UNITREF Linker information type is used to link references betweenRegular Units. The NAME array specifies the name of a Regular Unit that isreferenced within another Regular Unit. The FORMAT field is alwaysBYTE. The NREFS field specifies the number of pointers in thePOINTERLIST array (each of which points to a different reference). TheLinker must insert the final segment number of the referenced unit in alllocations pointed to by entries in the POINTERLIST array.IV-42Chapter 2: Disk Files

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!