Invoking Babel to generate C bindings

To create C stubs (i.e. code to support C clients to a set of SIDL classes or interfaces), you should invoke Babel as follows 7.1:

% babel -exclude-external -client=C file.sidl
or more cryptically
% babel -E -cC file.sidl

This will create more files than you can shake a stick at; although, the --exclude-external flag avoids generating files for symbols referenced in file.sidl. The files ending in _IOR.h and _IOR.c are the Intermediate Object Representation. The files ending with _Stub.c are the C stubs -- the interface between a C client and the IOR. The remaining header files have external C API that C clients may use.

To use the C stubs, you must compile the stub files whose file names end with _Stub.c and link them against the SIDL runtime library and a backend implementation.





babel-0.99.0
users_guide Last Modified 2006-04-20

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