2.11 COMPILED PDF

A compiled PDF is the result of using the COMPILE command on a source PDF. Compiled PDFs run more quickly, since the syntax scanning and building of symbol tables is completed during the compilation process. Only the declaration statements are compiled, not the PDF body. If the PDF is a procedure, compilation does not change the statements in the body of the proc. If the help file associated with the source PDF is separate, the compilation will append it to the output PDF.

A user specifies execution of a compiled PDF identically to execution of source PDFs. By default, the file type for compiled PDF is "CPD". However, TAE's default file type for proc execution is normally "PDF". Therefore, when the compiled PDF is invoked, the "CPD" type must be specified explicitly. Otherwise, the original PDF ("xxx.pdf") will be invoked rather than the desired compiled pdf ("xxx.cpd"). The search order with default file types for proc execution may be directed with the SETLIB command. For further information about the compile command, See Section 3.5 of the "TAE Command Language (TCL) User's Manual."

A proc containing internal procs in the pre-body may be compiled if the internal proc contains only declarations of parameter qualifiers. Note that any executable TCL command, GLOBAL or LOCAL variables defined in an internal proc, which is located in the pre-body of the outer proc, will be lost upon compilation.

The PDF compilation process will not check for the existence of defaulted file parameters with ACCESS=IN or INOUT. The checking is deferred to the actual execution time.