Next: How user-functors can be
Up: Advanced issues
Previous: Advanced issues
(only for C-mode)
If the nodes of the intermediate representation are not allocated by AST nor
fSDL functions, but with frontends that use their own node types, several
function calls in the generated code have to be adapted to the foreign
representation.
If the user wants to use foreign node
representations, has to do the following:
- call optimix with option -graphnode <GRAPHNODE> where
GRAPHNODE is the name of the node type that is used in the
foreign representation. This inserts an include statement in the body of
the generated file for the header <GRAPHNODE>.h. In this header
the user has to map certain macros which are used in the generated code, to
its representation.
- The list of macros is found in the header pattern file
$OPTIMIXDIR/include/GRAPHNODE.h, and in appendix
7.3.
- In AST mode, the node type is tTree from AST intermediate
representations. When the user generates other tree names with AST, also
apply this procedure.
Next: How user-functors can be
Up: Advanced issues
Previous: Advanced issues
Uwe Assmann
1998-12-22