aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/check.h2
-rw-r--r--mps/code/comm.gmk22
-rw-r--r--mps/code/commpost.nmk2
-rw-r--r--mps/code/commpre.nmk12
-rw-r--r--mps/code/config.h12
5 files changed, 25 insertions, 25 deletions
diff --git a/mps/code/check.h b/mps/code/check.h
index d338fb0fa5a..d5209cf7945 100644
--- a/mps/code/check.h
+++ b/mps/code/check.h
@@ -23,7 +23,7 @@
23 * without realising it. This has happened before. Eyeball the preprocessor 23 * without realising it. This has happened before. Eyeball the preprocessor
24 * output for each variety. For example: 24 * output for each variety. For example:
25 * 25 *
26 * cc -E -DCONFIG_VAR_WE trace.c 26 * cc -E -DCONFIG_VAR_RASH trace.c
27 * cc -E -DCONFIG_VAR_HOT trace.c 27 * cc -E -DCONFIG_VAR_HOT trace.c
28 * cc -E -DCONFIG_VAR_COOL trace.c 28 * cc -E -DCONFIG_VAR_COOL trace.c
29 * 29 *
diff --git a/mps/code/comm.gmk b/mps/code/comm.gmk
index 5d9d9c32ae8..bdb37556c9c 100644
--- a/mps/code/comm.gmk
+++ b/mps/code/comm.gmk
@@ -97,22 +97,22 @@ CFLAGSCOMMON = $(PFMDEFS) $(CFLAGSCOMPILER)
97# variety. 97# variety.
98 98
99# These flags are added to compilations for the indicated variety. 99# These flags are added to compilations for the indicated variety.
100CFWE = -DCONFIG_VAR_WE -DNDEBUG $(CFLAGSOPT) 100CFRASH = -DCONFIG_VAR_RASH -DNDEBUG $(CFLAGSOPT)
101CFHOT = -DCONFIG_VAR_HOT -DNDEBUG $(CFLAGSOPT) 101CFHOT = -DCONFIG_VAR_HOT -DNDEBUG $(CFLAGSOPT)
102CFDI = -DCONFIG_VAR_DI -DNDEBUG $(CFLAGSOPT) 102CFDIAG = -DCONFIG_VAR_DIAG -DNDEBUG $(CFLAGSOPT)
103CFCOOL = -DCONFIG_VAR_COOL $(CFLAGSDEBUG) 103CFCOOL = -DCONFIG_VAR_COOL $(CFLAGSDEBUG)
104CFTI = -DCONFIG_VAR_TI $(CFLAGSDEBUG) 104CFTI = -DCONFIG_VAR_TI $(CFLAGSDEBUG)
105 105
106# Bind CFLAGS to the appropriate set of flags for the variety. 106# Bind CFLAGS to the appropriate set of flags for the variety.
107# %%VARIETY: Add a test for the variety and set CFLAGS here. 107# %%VARIETY: Add a test for the variety and set CFLAGS here.
108ifeq ($(VARIETY),we) 108ifeq ($(VARIETY),rash)
109CFLAGS=$(CFLAGSCOMMON) $(CFWE) 109CFLAGS=$(CFLAGSCOMMON) $(CFRASH)
110else 110else
111ifeq ($(VARIETY),hot) 111ifeq ($(VARIETY),hot)
112CFLAGS=$(CFLAGSCOMMON) $(CFHOT) 112CFLAGS=$(CFLAGSCOMMON) $(CFHOT)
113else 113else
114ifeq ($(VARIETY),di) 114ifeq ($(VARIETY),diag)
115CFLAGS=$(CFLAGSCOMMON) $(CFDI) 115CFLAGS=$(CFLAGSCOMMON) $(CFDIAG)
116else 116else
117ifeq ($(VARIETY),cool) 117ifeq ($(VARIETY),cool)
118CFLAGS=$(CFLAGSCOMMON) $(CFCOOL) 118CFLAGS=$(CFLAGSCOMMON) $(CFCOOL)
@@ -291,10 +291,10 @@ endif
291# 291#
292# %%VARIETY: Add a rule for how to build the MPS library for the variety 292# %%VARIETY: Add a rule for how to build the MPS library for the variety
293 293
294$(PFM)/we/mps.a: $(PFM)/we/mps.o 294$(PFM)/rash/mps.a: $(PFM)/rash/mps.o
295$(PFM)/hot/mps.a: $(PFM)/hot/mps.o 295$(PFM)/hot/mps.a: $(PFM)/hot/mps.o
296 296
297$(PFM)/di/mps.a: \ 297$(PFM)/diag/mps.a: \
298 $(MPMOBJ) $(AMCOBJ) $(AMSOBJ) $(AWLOBJ) $(LOOBJ) $(SNCOBJ) \ 298 $(MPMOBJ) $(AMCOBJ) $(AMSOBJ) $(AWLOBJ) $(LOOBJ) $(SNCOBJ) \
299 $(MVFFOBJ) $(PLINTHOBJ) $(POOLNOBJ) 299 $(MVFFOBJ) $(PLINTHOBJ) $(POOLNOBJ)
300$(PFM)/cool/mps.a: \ 300$(PFM)/cool/mps.a: \
diff --git a/mps/code/commpost.nmk b/mps/code/commpost.nmk
index 0308ada12ab..568b914b8fe 100644
--- a/mps/code/commpost.nmk
+++ b/mps/code/commpost.nmk
@@ -96,7 +96,7 @@ mpsicv.cov:
96# 96#
97# %%VARIETY: Add a rule for how to build the MPS library for the variety 97# %%VARIETY: Add a rule for how to build the MPS library for the variety
98 98
99$(PFM)\we\mps.lib: $(PFM)\we\mps.obj 99$(PFM)\rash\mps.lib: $(PFM)\rash\mps.obj
100 $(ECHO) $@ 100 $(ECHO) $@
101 $(LIBMAN) $(LIBFLAGS) /OUT:$@ $** 101 $(LIBMAN) $(LIBFLAGS) /OUT:$@ $**
102 102
diff --git a/mps/code/commpre.nmk b/mps/code/commpre.nmk
index 16a10445ccc..08a3d02587d 100644
--- a/mps/code/commpre.nmk
+++ b/mps/code/commpre.nmk
@@ -113,9 +113,9 @@ CFLAGSEXTERNAL =
113 113
114# The combinations of variety 114# The combinations of variety
115# %%VARIETY: Define a macro containing the set of flags for the new variety. 115# %%VARIETY: Define a macro containing the set of flags for the new variety.
116CFWE = /DCONFIG_VAR_WE $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSEXTERNAL) 116CFRASH = /DCONFIG_VAR_RASH $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSEXTERNAL)
117CFHOT = /DCONFIG_VAR_HOT $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSEXTERNAL) 117CFHOT = /DCONFIG_VAR_HOT $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSEXTERNAL)
118CFDI = /DCONFIG_VAR_DI $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSINTERNAL) 118CFDIAG = /DCONFIG_VAR_DIAG $(CRTFLAGSHOT) $(CFLAGSHOT) $(CFLAGSINTERNAL)
119CFCOOL = /DCONFIG_VAR_COOL $(CRTFLAGSCOOL) $(CFLAGSCOOL) $(CFLAGSINTERNAL) 119CFCOOL = /DCONFIG_VAR_COOL $(CRTFLAGSCOOL) $(CFLAGSCOOL) $(CFLAGSINTERNAL)
120CFTI = /DCONFIG_VAR_TI $(CRTFLAGSCOOL) $(CFLAGSCOOL) $(CFLAGSINTERNAL) 120CFTI = /DCONFIG_VAR_TI $(CRTFLAGSCOOL) $(CFLAGSCOOL) $(CFLAGSINTERNAL)
121 121
@@ -130,9 +130,9 @@ LINKFLAGSINTERNAL = /DEBUG
130# ( Internal flags used to be set to /DEBUG:full ) 130# ( Internal flags used to be set to /DEBUG:full )
131LINKFLAGSEXTERNAL = /RELEASE 131LINKFLAGSEXTERNAL = /RELEASE
132 132
133LFWE = $(LINKFLAGSHOT) $(LINKFLAGSEXTERNAL) 133LFRASH = $(LINKFLAGSHOT) $(LINKFLAGSEXTERNAL)
134LFHOT = $(LINKFLAGSHOT) $(LINKFLAGSEXTERNAL) 134LFHOT = $(LINKFLAGSHOT) $(LINKFLAGSEXTERNAL)
135LFDI = $(LINKFLAGSHOT) $(LINKFLAGSINTERNAL) 135LFDIAG = $(LINKFLAGSHOT) $(LINKFLAGSINTERNAL)
136LFCOOL = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL) 136LFCOOL = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL)
137LFTI = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL) 137LFTI = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL)
138 138
@@ -143,9 +143,9 @@ LFTI = $(LINKFLAGSCOOL) $(LINKFLAGSINTERNAL)
143LIBMAN = lib # can't call this LIB - it screws the environment 143LIBMAN = lib # can't call this LIB - it screws the environment
144LIBFLAGSCOMMON = /nologo 144LIBFLAGSCOMMON = /nologo
145 145
146LIBFLAGSWE = 146LIBFLAGSRASH =
147LIBFLAGSHOT = 147LIBFLAGSHOT =
148LIBFLAGSDI = 148LIBFLAGSDIAG =
149LIBFLAGSCOOL = 149LIBFLAGSCOOL =
150LIBFLAGSTI = 150LIBFLAGSTI =
151 151
diff --git a/mps/code/config.h b/mps/code/config.h
index 41c092fc070..8920274e83e 100644
--- a/mps/code/config.h
+++ b/mps/code/config.h
@@ -25,7 +25,7 @@
25 the directives CONFIG_ASSERT, CONFIG_STATS, CONFIG_LOG, etc. which control 25 the directives CONFIG_ASSERT, CONFIG_STATS, CONFIG_LOG, etc. which control
26 actual compilation features. */ 26 actual compilation features. */
27 27
28/* CONFIG_VAR_WE -- the white-hot variety 28/* CONFIG_VAR_RASH -- the rash and reckless variety
29 * 29 *
30 * This variety switches off as many features as possible for maximum 30 * This variety switches off as many features as possible for maximum
31 * performance, but is therefore unsafe and undebuggable. It is not intended 31 * performance, but is therefore unsafe and undebuggable. It is not intended
@@ -33,7 +33,7 @@
33 * logging, etc. have negligible overhead. 33 * logging, etc. have negligible overhead.
34 */ 34 */
35 35
36#if defined(CONFIG_VAR_WE) /* White-hot variety */ 36#if defined(CONFIG_VAR_RASH)
37/* no asserts */ 37/* no asserts */
38/* no statistic meters */ 38/* no statistic meters */
39/* no telemetry log events */ 39/* no telemetry log events */
@@ -46,7 +46,7 @@
46 * consistency checking and allowing some debugging and telemetry features. 46 * consistency checking and allowing some debugging and telemetry features.
47 */ 47 */
48 48
49#elif defined(CONFIG_VAR_HOT) /* Hot variety */ 49#elif defined(CONFIG_VAR_HOT)
50#define CONFIG_ASSERT 50#define CONFIG_ASSERT
51#ifndef CHECKLEVEL 51#ifndef CHECKLEVEL
52#define CHECKLEVEL CheckLevelMINIMAL 52#define CHECKLEVEL CheckLevelMINIMAL
@@ -55,14 +55,14 @@
55/* no telemetry log events */ 55/* no telemetry log events */
56 56
57 57
58/* CONFIG_VAR_DI -- diagnostic variety 58/* CONFIG_VAR_DIAG -- diagnostic variety
59 * 59 *
60 * Deprecated. The diagnostic variety prints messages about the internals 60 * Deprecated. The diagnostic variety prints messages about the internals
61 * of the MPS to an output stream. This is being replaced by an extended 61 * of the MPS to an output stream. This is being replaced by an extended
62 * telemetry system. RB 2012-08-31 62 * telemetry system. RB 2012-08-31
63 */ 63 */
64 64
65#elif defined(CONFIG_VAR_DI) /* Diagnostic variety */ 65#elif defined(CONFIG_VAR_DIAG) /* Diagnostic variety */
66#define CONFIG_ASSERT 66#define CONFIG_ASSERT
67#ifndef CHECKLEVEL 67#ifndef CHECKLEVEL
68#define CHECKLEVEL CheckLevelMINIMAL 68#define CHECKLEVEL CheckLevelMINIMAL
@@ -85,7 +85,7 @@
85 * and data collection and output, and full debugging information. 85 * and data collection and output, and full debugging information.
86 */ 86 */
87 87
88#elif defined(CONFIG_VAR_COOL) /* Cool variety */ 88#elif defined(CONFIG_VAR_COOL)
89#define CONFIG_ASSERT 89#define CONFIG_ASSERT
90#define CONFIG_ASSERT_ALL 90#define CONFIG_ASSERT_ALL
91#define CONFIG_STATS 91#define CONFIG_STATS