13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Host FileWhen you type L at the Command level to invoke the Linker explicitly, thesystem displays the messages:Linking ...Apple Pascal Linker [<strong>1.3</strong>1Link what host codefile?The host file is the Pascal program codefile into which the EXTERNALroutines or Regular Units are to be linked. Note that the Linker will notaccept an assembly routine codefile as the host file; the host must be aPascal program codefile.If you respond to the prompt by pressing RETURN, the Linker uses thePascal system disk's workfile SYSTEM.WRK.CODE as the host file. If eitherthe Run command or the Compile command has just caused the Compiler tosave a compiled codefile, the Linker uses that file as the host file even if it isnot SYSTEM.WRK.CODE.You can also respond by typing the filename of any other Pascal codefile. Ifthe Linker cannot find a file with the exact filename you typed and thatfilename does not end in .CODE or in .LIBRARY, it adds the suffix .CODE tothe filename and tries again. The Linker always displays the filename of thelast file it tried to find.To cancel the Link command, respond to the prompt by pressing ESC andthen pressing RETURN.If you press ESC followed by RETURN in response to any prompt in theLinker, linking will terminate and you will return to the Command level.The library FilesAfter the Linker finds the host file, it asks for the name of a library file thatcontains the required Regular Units or EXTERNAL routines. The prompt is:Using what library file?You should respond by typing the filename of any codefile containing aRegular Unit or EXTERNAL routine that you want linked into the hostprogram. This file can be either a codefile produced by the Compiler or bythe Assembler, or a library file created by the Librarian.The Linker looks first for the exact filename that you type; then, if thesearch is unsuccessful, it adds the suffix .CODE and looks again. In anycase, it always displays the local filename of the file actually found.II-210Chapter 7: The Linker

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

Saved successfully!

Ooh no, something went wrong!