Keywords: xcoral

Next: Miscellaneous Up: Smac Previous: Others

# Compiling Smac

When you compile Smac definition code, you can define or not the following cpp names:

- __stdc__ to have complete function profiles
- XCORAL to compile Smac for Xcoral, otherwise you must not compile and link smacXcoral.c, but just add main.c.
- RUNTIMECHECK to protect execution against core dump and other sweets. If you define it (recommended for Xcoral) all your memory accesses and modifications are checked and an error occurs for each illegal addressing.

Attention The word.h file must not be present when you compile Smac. Then it can be produced by the word.c program to obtain objects sizes and alignments.

To compile Smac for using it under Xcoral use Imakefile and Makefile. They define XCORAL and RUNTIMECHECK.

To compile Smac alone, type make -f MakeAlone