projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c703bd
)
test file for dstm functions
author
adash
<adash>
Wed, 28 Feb 2007 01:53:39 +0000
(
01:53
+0000)
committer
adash
<adash>
Wed, 28 Feb 2007 01:53:39 +0000
(
01:53
+0000)
Robust/src/Runtime/DSTM/interface/main.c
[new file with mode: 0644]
patch
|
blob
diff --git a/Robust/src/Runtime/DSTM/interface/main.c
b/Robust/src/Runtime/DSTM/interface/main.c
new file mode 100644
(file)
index 0000000..
3a6f44f
--- /dev/null
+++ b/
Robust/src/Runtime/DSTM/interface/main.c
@@ -0,0
+1,25
@@
+#include<stdio.h>
+#include<string.h>
+#include<stdlib.h>
+#include "dstm.h"
+
+#define size 1000000
+
+
+obj_addr_table_t mlut;
+int classsize[]={sizeof(int),sizeof(char),sizeof(short), sizeof(void *)};
+
+int main() {
+ int i;
+
+ dstm_init();
+ create_objstr(size);
+ createHash(&mlut, HASH_SIZE, 0.75);
+
+ for(i=0; i< 4 ; i++) {
+ createObject(i);
+ }
+
+ createObject(3);
+ return 0;
+}