Next: , Previous: , Up: Backend Developer's Reference   [Contents][Index]


B.2 C hooks

To save the backend developer from having to implement coNCePTuaL backends entirely from scratch, coNCePTuaL provides a codegen_c_generic.py module that defines a base class for code generators that output C code. The base class handles the features that are specific to C but independent of any messaging library. Derived classes need only define those “hook” functions that are needed to implement library-specific functionality.

Hooks are named after the method from which they’re called but with an all-uppercase tag appended. The following list shows each hook-calling method in codegen_c_generic.py and the set of hooks it calls. See Hook methods, for more information.


Next: , Previous: , Up: Backend Developer's Reference   [Contents][Index]

Scott Pakin, pakin@lanl.gov