HPlogo ALLBASE/SQL Pascal Application Programming Guide: HP 3000 MPE/iX Computer Systems > Chapter 1 Getting Started with ALLBASE/SQL Pascal Programming

Compiling and Linking the Program

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Figure 1-3 summarizes the steps in creating an executable ALLBASE/SQL Pascal program from the files created by the Pascal preprocessor.

Figure 1-3 Compile-Time and Linking-Time Events

[Compile-Time and Linking-Time Events]

You submit to the Pascal compiler a modified source code file and related include files created by the preprocessor. The compiler then generates an object code module. To convert object code modules into an executable program, link them after compilation by invoking the linker. This step creates an executable program file.

In the following example, an executable program named SomeProg is created after a module named Pgmr1@AcctDB.SomeMod is stored by the Pascal preprocessor in a DBEnvironment named SomeDBE.GroupDB.AcctDB. The program is in the GroupP group.

   :HELLO PGMR1.AcctDB,GroupP
    .
    .
   :RUN PSQLPAS.PUB.SYS; INFO = 'SomeDBE.GroupDB (MODULE(SOMEMOD))'
    .
    .
   :PASXLLK ModifiedSourceCodeFile,SOMEPROG,$NULL