next up previous contents
Next: Invoking BABEL to generate Up: C Bindings Previous: Implicitly defined methods   Contents

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:

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

This will create more files than you can shake a stick at. The files ending in _IOR.h and _IOR.c are the Internal 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.8.0
users_guide Last Modified 2003-01-14

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