Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
ALLBASE/SQL FORTRAN Application Programming Guide: HP 3000 MPE/iX Computer Systems > Chapter 1 Getting Started with ALLBASE/SQL Programming in FORTRAN

The Compiler and the Linker

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Figure 1-3 “Compile-Time and Link-Time Events” summarizes the steps in creating an executable ALLBASE/SQL FORTRAN program from the files created by the FORTRAN preprocessor.

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

Compile-Time and Link-Time Events

You must use native mode to compile and link your program.

You submit to the FORTRAN compiler a modified source code file and the related include file(s) created by the preprocessor. The compiler then generates an object code file. To convert one or more object code files into an executable program, you link them by invoking the linker. This step creates an executable program file. Refer to the Chapter "Using the ALLBASE/SQL FORTRAN Preprocessor" for more information on compiling and linking.

The following example illustrates the preprocessor storing a module in a DBEnvironment located in a group other than that in which preprocessing was initiated. An executable program named SOMEPROG is created in the GROUP1 group after a module named SOMEMOD is stored by the FORTRAN preprocessor in a DBEnvironment named SOMEDBE.GROUP2.ACCTDB. Note that PGMR1 must have appropriate ALLBASE/SQL and operating system file authorities as well.

        :HELLO PGMR1.ACCTDB.GROUP1

         .

         .

         .

        :RUN PSQLFOR.PUB.SYS; INFO = 'SOMEDBE.GROUP2 (MODULE(SOMEMOD))'

         .

         .

         .

        :CCXLLK  ModifiedSourceFile,SOMEPROG,$NULL
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.