Invoking Babel to generate FORTRAN 77 Stubs

Here is how you should invoke Babel to create the FORTRAN 77 stubs for an IDL file 9.1.

% babel -client=f77 file.sidl
or simply
% babel -c=f77 file.sidl

This will create a babel.make file, numerous C headers, numerous C source files, and some FORTRAN 77 files. The files ending in _fStub.c are the FORTRAN 77 stubs that allow FORTRAN 77 to call a SIDL method.

You will need to compile and link the files ending in _fStub.c into your application (i.e. STUBSRCS in babel.make). Normally, the IOR files (_IOR.c) are linked together with the implementation file, so you probably don't need to compile them.

If you have some enum's defined in your SIDL file, Babel will generate FORTRAN 77 include files in the style of DEC FORTRAN (Compaq FORTRAN? (now HP Fortran???)) %INCLUDE. These files are named by taking the fully qualified name of the enum, changing the periods to underscores, and appending .inc . Here is an example of a generated include file.


C       File:          enums_car.inc
C       Symbol:        enums.car-v1.0
C       Symbol Type:   enumeration
C       Babel Version: 0.5.0
C       Description:   Automatically generated; changes will be lost
C      
C       babel-version = 0.5.0
C       source-line   = 25
C      
        integer porsche
        parameter (porsche = 911)
        integer ford
        parameter (ford = 150)
        integer mercedes
	parameter (mercedes = 550)



babel-0.10.2
users_guide Last Modified 2005-03-23

http://www.llnl.gov/CASC/components
components@llnl.gov