Bindings generation

The following is an example of invoking Babel to create the Fortran 90 stubs for a SIDL file10.1$:$

% babel -exclude-external -client=f90 file.sidl
or simply
% babel -E -c=f90 file.sidl

As a result, a makefile fragment called babel.make, numerous C header and source files, and some Fortran 90 files will be created. Files ending in _fStub.c (i.e., STUBSRCS in babel.make) are called by the Fortran 90 module which in turn allow Fortran 90 to call SIDL methods. Files ending in _type.F90 (i.e., STUBMODULESRCS in babel.make) contain derived type definitions for classes and interfaces. The remaining files ending in .F90 (i.e., TYPEMODULESRCS in babel.make) are Fortran 90 modules containing methods. All of these files need to be compiled and linked into the application.

Normally, IOR files (i.e., those ending in _IOR.c) are linked together with the implementation file, so probably don't need to be compiled.





babel-1.4.0
users_guide Last Modified 2008-10-16

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