SMPSs Compiler

SMP superscalar is based on two components: a compiler and a supporting runtime library. The compiler is a source to source compiler based on Mercurium. The invokation syntax, as is shown below, is very similar to standard C compilers.

 

mcc < source.c > < options >
Options:
-Dmacro                 Option passed the preprocessors
-g                           Option passed to the native compilers
-g3                         Option passed to the native compilers
-h/-help                   Prints this information
-Idir                        Option passed to the native preprocessors
-k/-keep                   Keep temporary files
-llibrary                  Option passed to the native compiler
-Ldir                       Option passed to the native compiler
-noincludes             Don't try to regenerate include directives
-O0                         Option passed to the native compilers
-O1                         Option passed to the native compilers
-O2                         Option passed to the native compilers
-O3                         Option passed to the native compilers
-ofile                       Sets the name of the output file
-t/-tracing               Enable program tracing
-v/-verbose              Enables some informational messages
-Wc,OPTIONS        Comma separated list of options passed to the native compiler
-Wl,OPTIONS         Comma separated list of options passed to the native linker
-Wp,OPTIONS        Comma separated list of options passed to the native preprocessor

The compiler takes as input an SMP superscalar source file and performs all code transformations necessary to map the functionality expected from them into calls to the runtime library. Then it compiles and links the resulting C code using the platform compiler.

Prev / Next