summaryrefslogtreecommitdiffstats
path: root/c/src/ada-tests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-06-03 18:38:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-06-03 18:38:40 +0000
commitac953f2429d2d412f137f0d31fabacc376e0d9fd (patch)
tree0676bf71d1659db72de3256e11d7aae84698659f /c/src/ada-tests
parentnew file (diff)
downloadrtems-ac953f2429d2d412f137f0d31fabacc376e0d9fd.tar.bz2
new files
Diffstat (limited to 'c/src/ada-tests')
-rw-r--r--c/src/ada-tests/sptests/sp19/README23
-rw-r--r--c/src/ada-tests/sptests/sp19/config.h33
2 files changed, 56 insertions, 0 deletions
diff --git a/c/src/ada-tests/sptests/sp19/README b/c/src/ada-tests/sptests/sp19/README
new file mode 100644
index 0000000000..07d60c5bc4
--- /dev/null
+++ b/c/src/ada-tests/sptests/sp19/README
@@ -0,0 +1,23 @@
+#
+# $Id$
+#
+
+This is a "problem" test in Ada versus the C equivalent. In C,
+we used macros to :
+
+ + declare a LOT of local integer and floating point variables
+ + load them with values
+ + check them at certain times
+ + to avoid floating point operations on CPUs w/o hardware support
+
+The macros are not equivalent to subprograms doing the same thing.
+We are trying to insure that the register set is fully utilized and
+checking that it survives context switches. If the routines are
+subprograms, then calling conventions and scoping rules apply. Thus
+the variables do not exist throughout the entire life of the task
+as in the C test.
+
+It seems to point out that although the conditional compilation
+and macro capabilities of C are often abused, they do provide
+capabilities which are difficult if not impossible to mimic entirely
+with subprograms.
diff --git a/c/src/ada-tests/sptests/sp19/config.h b/c/src/ada-tests/sptests/sp19/config.h
new file mode 100644
index 0000000000..bfb614cd4e
--- /dev/null
+++ b/c/src/ada-tests/sptests/sp19/config.h
@@ -0,0 +1,33 @@
+/* config.h
+ *
+ * This include file defines the Configuration Table for this test.
+ *
+ * COPYRIGHT (c) 1989-1997.
+ * On-Line Applications Research Corporation (OAR).
+ * Copyright assigned to U.S. Government, 1994.
+ *
+ * The license and distribution terms for this file may in
+ * the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * $Id$
+ */
+
+
+/* configuration information */
+
+#define CONFIGURE_SPTEST
+
+#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
+#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
+#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
+#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
+
+#include <confdefs.h>
+
+/* end of include file */