The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
compiler.c File Reference

The ROOT-Sim compiler. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+ Include dependency graph for compiler.c:

Go to the source code of this file.

Macros

#define ROOTSIM_OPTIMIZATION_OPTIONS   ""
 The optimization options to be used when compiling models. More...
 
#define ROOTSIM_CC   ""
 The path of the C compiler to use when compiling models. More...
 
#define ROOTSIM_LIB_DIR   ""
 The path of the installed ROOT-Sim libraries. More...
 
#define ROOTSIM_INC_DIR   ""
 The path of the installed ROOT-Sim headers. More...
 

Functions

int main (int argc, char **argv)
 The main entry point of the custom compiler. More...
 

Variables

static const char cmd_line_prefix []
 
static const char cmd_line_suffix []
 

Detailed Description

The ROOT-Sim compiler.

This is the ROOT-Sim compiler, a compiler wrapper which allows to setup all necessary includes and configurations to run with a parallel or distributed simulation. This is targeting low level C models.

Definition in file compiler.c.

Macro Definition Documentation

◆ ROOTSIM_CC

#define ROOTSIM_CC   ""

The path of the C compiler to use when compiling models.

This macro is filled in at build time

Definition at line 27 of file compiler.c.

◆ ROOTSIM_INC_DIR

#define ROOTSIM_INC_DIR   ""

The path of the installed ROOT-Sim headers.

This macro is filled in at build time

Definition at line 39 of file compiler.c.

◆ ROOTSIM_LIB_DIR

#define ROOTSIM_LIB_DIR   ""

The path of the installed ROOT-Sim libraries.

This macro is filled in at build time

Definition at line 33 of file compiler.c.

◆ ROOTSIM_OPTIMIZATION_OPTIONS

#define ROOTSIM_OPTIMIZATION_OPTIONS   ""

The optimization options to be used when compiling models.

This macro is filled in at build time

Definition at line 21 of file compiler.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

The main entry point of the custom compiler.

Parameters
argcThe count of command line arguments, as per ISO C standard
argvThe list of command line arguments, as per ISO C standard

Definition at line 62 of file compiler.c.

Variable Documentation

◆ cmd_line_prefix

const char cmd_line_prefix[]
static
Initial value:
=
"" " "
"" " "
"-I" "" " "
"-Xclang -load "
"-Xclang " "" "librootsim-llvm.so"

Definition at line 42 of file compiler.c.

◆ cmd_line_suffix

const char cmd_line_suffix[]
static
Initial value:
=
" -Wl,--as-needed "
"" "librootsim.a "
"" "librootsim-mods.a "
"-lm "
"-lpthread"

Definition at line 49 of file compiler.c.