![]() |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Initialization routines. More...
#include <core/init.h>
#include <arch/io.h>
#include <arch/thread.h>
#include <core/arg_parse.h>
#include <core/core.h>
#include <inttypes.h>
#include <limits.h>
#include <memory.h>
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | ROOTSIM_VERSION "debugging_version" |
Enumerations | |
enum | option_key { OPT_NPRC, OPT_LOG, OPT_CLOG, OPT_SIMT, OPT_GVT, OPT_NP, OPT_BIND, OPT_SERIAL, OPT_SEED, OPT_LAST } |
This is the list of arg_parse.h mnemonics for command line arguments. | |
Functions | |
static void | print_config (void) |
Pretty prints ROOT-Sim current configuration. | |
static unsigned long long | parse_ullong_limits (const char *str, unsigned long long low, unsigned long long high, bool *err_chk) |
Parses a string into a unsigned long long value with bounds checks. More... | |
static long double | parse_ldouble_limits (const char *str, long double low, long double high, bool *err_chk) |
Parses a string into a long double value with bounds checks. More... | |
static void | parse_opt (int key, const char *arg) |
Parses a single ROOT-Sim option, also handles parsing events. More... | |
void | model_parse (int key, const char *arg) |
void | init_args_parse (int argc, char **argv) |
Parses ROOT-Sim command line arguments. More... | |
Variables | |
struct simulation_configuration | global_config |
The configuration filled in by init_args_parse() | |
static struct ap_option | ap_options [] |
The array of ROOT-Sim supported command line options. More... | |
struct ap_option | model_options [] = {0} |
struct ap_section | ap_sects [] |
The struct ap_section containing ROOT-Sim internal parser and the model one. More... | |
struct ap_settings | ap_sets |
The struct ap_settings with the ROOT-Sim command line parsing configuration. More... | |
Initialization routines.
This module implements the simulator initialization routines
Definition in file init.c.
void init_args_parse | ( | int | argc, |
char ** | argv | ||
) |
|
static |
Parses a string into a long double value with bounds checks.
str | The string to parse |
low | The minimum allowed value of the parsed value |
high | The maximum allowed value of the parsed value |
err_chk | A valid pointer to a boolean, which gets set in case of errors |
|
static |
Parses a single ROOT-Sim option, also handles parsing events.
key | the key identifying the currently parsed option or event |
arg | the command line argument supplied with the option if present |
This is used in ROOT-Sim struct ap_section
|
static |
Parses a string into a unsigned long long value with bounds checks.
str | The string to parse |
low | The minimum allowed value of the parsed value |
high | The maximum allowed value of the parsed value |
err_chk | A valid pointer to a boolean, which gets set in case of errors |
|
static |
The array of ROOT-Sim supported command line options.
struct ap_section ap_sects[] |
The struct ap_section containing ROOT-Sim internal parser and the model one.
struct ap_settings ap_sets |
The struct ap_settings with the ROOT-Sim command line parsing configuration.