Up: Example 6
Previous: To create the architecture
  Contents
- Before performing the Code Generation, you have to perform the Adequation
(F4 for Flatten).
- In the principal window,
Menu: Code/Generate Code (or F5).
This generate for each operator of the main architecture the code in a
file. The files generated may be viewed:
Menu: Code/View Code (or F6).
- The macros corresponding to the operations including in libraries of
SynDEx are already defined in the folder ``macros''.
- In the same folder as the SynDEx application of the example 6, create
a new file example6.m4x in which you define the operation
conv and the number of iterations. The file looks like the figure
6.3.
Figure 6.3:
the file example6.m4x
 |
- Create a new file example6.m4m, in which you set for each
operator, except the main operator, the name of a workstation.
The file looks like the figure 6.4.
Figure 6.4:
the file example6.m4m
 |
- Create a new file root.m4x including the file
example6.m4m. The figure looks like the figure 6.5.
Figure 6.5:
the file root.m4x
 |
- Create a new file GNUmakefile which allows the compilation and
the substitution of the macros from the code generation by the executable code.
The file looks like the figure 6.6
Figure 6.6:
the file GNUmakefile
 |
the folder of the example 6 must contain the following files:
- example6.sdx
- example6.m4
- root.m4
- pc1.m4
- example6.m4x
- example6.m4m
- root.m4x
- GNUmakefile
To launch the execution, type the command gmake in the folder of the
example 6.
To delete the file created during the compilation, type the command
gmake clean.
Up: Example 6
Previous: To create the architecture
  Contents
Julien Forget
2003-02-03